cxeep commited on
Commit
2d1366e
·
verified ·
1 Parent(s): efbb40f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,7 +39,7 @@ def check_key_gemini_availability(key, ai_model):
39
  except Exception as e:
40
  return False, f"Error: {e}"
41
 
42
- def check_keys(keys_text):
43
  """
44
  Checks a list of Gemini API keys and categorizes them into valid and invalid.
45
 
@@ -56,7 +56,7 @@ def check_keys(keys_text):
56
  invalid_keys = []
57
 
58
  for key in key_list:
59
- is_valid, error_msg = check_key_gemini_availability(key)
60
  if is_valid:
61
  valid_keys.append(key)
62
  else:
 
39
  except Exception as e:
40
  return False, f"Error: {e}"
41
 
42
+ def check_keys(keys_text, ai_model):
43
  """
44
  Checks a list of Gemini API keys and categorizes them into valid and invalid.
45
 
 
56
  invalid_keys = []
57
 
58
  for key in key_list:
59
+ is_valid, error_msg = check_key_gemini_availability(key, ai_model)
60
  if is_valid:
61
  valid_keys.append(key)
62
  else: