ClaCe commited on
Commit
edf021b
·
verified ·
1 Parent(s): 21d5a20

Upload index.html

Browse files
Files changed (1) hide show
  1. static/index.html +4 -0
static/index.html CHANGED
@@ -266,7 +266,10 @@
266
 
267
  const data = await response.json();
268
 
 
 
269
  if (response.ok && data.valid) {
 
270
  showKeyStatus('valid');
271
  userApiKey = apiKey;
272
  localStorage.setItem('hf_api_key', apiKey);
@@ -274,6 +277,7 @@
274
  enableMainApp();
275
  return true;
276
  } else {
 
277
  showKeyStatus('invalid', data.error || 'Invalid API key');
278
  isApiKeyValid = false;
279
  disableMainApp();
 
266
 
267
  const data = await response.json();
268
 
269
+ console.log('Validation response:', { status: response.status, ok: response.ok, data });
270
+
271
  if (response.ok && data.valid) {
272
+ console.log('✅ API key validated successfully');
273
  showKeyStatus('valid');
274
  userApiKey = apiKey;
275
  localStorage.setItem('hf_api_key', apiKey);
 
277
  enableMainApp();
278
  return true;
279
  } else {
280
+ console.log('❌ API key validation failed:', data);
281
  showKeyStatus('invalid', data.error || 'Invalid API key');
282
  isApiKeyValid = false;
283
  disableMainApp();