Update app.py
Browse files
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:
|