superdup95
commited on
Commit
•
45a78d1
1
Parent(s):
6de41d6
Update app.py
Browse files
app.py
CHANGED
@@ -128,11 +128,13 @@ def get_key_replicate_info(key):
|
|
128 |
"key_availability": key_avai[0],
|
129 |
"account_name": "",
|
130 |
"type": "",
|
|
|
131 |
"hardware_available": ""}
|
132 |
if key_avai[0]:
|
133 |
info_dict['account_name'] = key_avai[1]['username']
|
134 |
info_dict['type'] = key_avai[1]['type']
|
135 |
-
info_dict['
|
|
|
136 |
return info_dict
|
137 |
|
138 |
def get_key_aws_info(key):
|
@@ -144,19 +146,21 @@ def get_key_aws_info(key):
|
|
144 |
"root": "",
|
145 |
"admin": "",
|
146 |
"quarantine": "",
|
147 |
-
"iam_full_access": "",
|
148 |
"claude_v2_enabled_region": key_avai[6],
|
149 |
"claude_sonnet_enabled_region": key_avai[7],
|
|
|
150 |
"cost_and_usage": ""}
|
151 |
if key_avai[0]:
|
152 |
info_dict['username'] = key_avai[1]
|
153 |
info_dict['root'] = key_avai[2]
|
154 |
info_dict['admin'] = key_avai[3]
|
155 |
-
info_dict['quarantine'] = key_avai[
|
156 |
-
info_dict['iam_full_access'] = key_avai[
|
|
|
157 |
info_dict['claude_v2_enabled_region'] = key_avai[6]
|
158 |
info_dict['claude_sonnet_enabled_region'] = key_avai[7]
|
159 |
-
info_dict['cost_and_usage'] = key_avai[
|
160 |
return info_dict
|
161 |
|
162 |
def not_supported(key):
|
@@ -172,7 +176,7 @@ with gr.Blocks() as demo:
|
|
172 |
gr.Markdown('''
|
173 |
# OpenAI/Anthropic/Gemini/Azure/Mistral/Replicate/AWS Claude API Key Status Checker
|
174 |
|
175 |
-
*(Based on shaocongma, CncAnon1 and
|
176 |
|
177 |
AWS credential's format: AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY (root might not be accurate)
|
178 |
|
|
|
128 |
"key_availability": key_avai[0],
|
129 |
"account_name": "",
|
130 |
"type": "",
|
131 |
+
"has_quota": "",
|
132 |
"hardware_available": ""}
|
133 |
if key_avai[0]:
|
134 |
info_dict['account_name'] = key_avai[1]['username']
|
135 |
info_dict['type'] = key_avai[1]['type']
|
136 |
+
info_dict['has_quota'] = key_avai[2]
|
137 |
+
info_dict['hardware_available'] = key_avai[3]
|
138 |
return info_dict
|
139 |
|
140 |
def get_key_aws_info(key):
|
|
|
146 |
"root": "",
|
147 |
"admin": "",
|
148 |
"quarantine": "",
|
149 |
+
"iam_full_access": "",
|
150 |
"claude_v2_enabled_region": key_avai[6],
|
151 |
"claude_sonnet_enabled_region": key_avai[7],
|
152 |
+
"billing": "",
|
153 |
"cost_and_usage": ""}
|
154 |
if key_avai[0]:
|
155 |
info_dict['username'] = key_avai[1]
|
156 |
info_dict['root'] = key_avai[2]
|
157 |
info_dict['admin'] = key_avai[3]
|
158 |
+
info_dict['quarantine'] = key_avai[4]
|
159 |
+
info_dict['iam_full_access'] = key_avai[5]
|
160 |
+
info_dict['billing'] = key_avai[8]
|
161 |
info_dict['claude_v2_enabled_region'] = key_avai[6]
|
162 |
info_dict['claude_sonnet_enabled_region'] = key_avai[7]
|
163 |
+
info_dict['cost_and_usage'] = key_avai[9]
|
164 |
return info_dict
|
165 |
|
166 |
def not_supported(key):
|
|
|
176 |
gr.Markdown('''
|
177 |
# OpenAI/Anthropic/Gemini/Azure/Mistral/Replicate/AWS Claude API Key Status Checker
|
178 |
|
179 |
+
*(Based on shaocongma, CncAnon1, Drago and kingbased key checkers)*
|
180 |
|
181 |
AWS credential's format: AWS_ACCESS_KEY_ID:AWS_SECRET_ACCESS_KEY (root might not be accurate)
|
182 |
|