Update app.py
Browse files
app.py
CHANGED
@@ -162,19 +162,25 @@ def get_key_aws_info(key):
|
|
162 |
"root": "",
|
163 |
"admin": "",
|
164 |
"quarantine": "",
|
165 |
-
"iam_full_access": "",
|
166 |
-
"
|
167 |
-
"
|
168 |
-
"
|
|
|
|
|
|
|
|
|
|
|
169 |
if key_avai[0]:
|
170 |
info_dict['username'] = key_avai[1]
|
171 |
info_dict['root'] = key_avai[2]
|
172 |
info_dict['admin'] = key_avai[3]
|
173 |
info_dict['quarantine'] = key_avai[4]
|
174 |
info_dict['iam_full_access'] = key_avai[5]
|
175 |
-
info_dict['
|
176 |
-
info_dict['
|
177 |
-
info_dict['
|
|
|
178 |
return info_dict
|
179 |
|
180 |
def get_key_openrouter_info(key):
|
@@ -238,4 +244,5 @@ with gr.Blocks() as demo:
|
|
238 |
|
239 |
clear_button.click(fn=clear_inputs, inputs=[key], outputs=[key])
|
240 |
submit_button.click(fn=sort_key, inputs=[key, rate_limit], outputs=[info], api_name="sort_key")
|
241 |
-
demo.launch()
|
|
|
|
162 |
"root": "",
|
163 |
"admin": "",
|
164 |
"quarantine": "",
|
165 |
+
"iam_full_access": "",
|
166 |
+
"iam_user_change_password": "",
|
167 |
+
"aws_bedrock_full_access": "",
|
168 |
+
"enabled_region": "",
|
169 |
+
# "claude_v2_enabled_region": key_avai[6],
|
170 |
+
# "claude_haiku_enabled_region": key_avai[7],
|
171 |
+
# "claude_sonnet_enabled_region": key_avai[8],
|
172 |
+
# "claude_opus_enabled_region": key_avai[9],
|
173 |
+
"cost_and_usage": key_avai[1]}
|
174 |
if key_avai[0]:
|
175 |
info_dict['username'] = key_avai[1]
|
176 |
info_dict['root'] = key_avai[2]
|
177 |
info_dict['admin'] = key_avai[3]
|
178 |
info_dict['quarantine'] = key_avai[4]
|
179 |
info_dict['iam_full_access'] = key_avai[5]
|
180 |
+
info_dict['iam_user_change_password'] = key_avai[6]
|
181 |
+
info_dict['aws_bedrock_full_access'] = key_avai[7]
|
182 |
+
info_dict['enabled_region'] = key_avai[8]
|
183 |
+
info_dict['cost_and_usage'] = key_avai[9]
|
184 |
return info_dict
|
185 |
|
186 |
def get_key_openrouter_info(key):
|
|
|
244 |
|
245 |
clear_button.click(fn=clear_inputs, inputs=[key], outputs=[key])
|
246 |
submit_button.click(fn=sort_key, inputs=[key, rate_limit], outputs=[info], api_name="sort_key")
|
247 |
+
demo.launch()
|
248 |
+
1
|