Spaces:
Running
Running
a100 kh
commited on
Commit
•
1693bd5
1
Parent(s):
529989d
models
Browse files
serve/gradio_web_server.py
CHANGED
@@ -169,7 +169,7 @@ def get_conv_log_filename(is_vision=False, has_csam_image=False):
|
|
169 |
|
170 |
def get_model_list(controller_url, register_api_endpoint_file, vision_arena):
|
171 |
global api_endpoint_info
|
172 |
-
|
173 |
# Add models from the controller
|
174 |
if controller_url:
|
175 |
ret = requests.post(controller_url + "/refresh_all_workers")
|
@@ -183,7 +183,8 @@ def get_model_list(controller_url, register_api_endpoint_file, vision_arena):
|
|
183 |
models = ret.json()["models"]
|
184 |
else:
|
185 |
models = []
|
186 |
-
|
|
|
187 |
# Add models from the API providers
|
188 |
if register_api_endpoint_file:
|
189 |
api_endpoint_info = json.load(open(register_api_endpoint_file))
|
|
|
169 |
|
170 |
def get_model_list(controller_url, register_api_endpoint_file, vision_arena):
|
171 |
global api_endpoint_info
|
172 |
+
"""
|
173 |
# Add models from the controller
|
174 |
if controller_url:
|
175 |
ret = requests.post(controller_url + "/refresh_all_workers")
|
|
|
183 |
models = ret.json()["models"]
|
184 |
else:
|
185 |
models = []
|
186 |
+
"""
|
187 |
+
models = []
|
188 |
# Add models from the API providers
|
189 |
if register_api_endpoint_file:
|
190 |
api_endpoint_info = json.load(open(register_api_endpoint_file))
|