Explorar o código

Update projects/multi_gpu_v2/_config_endpoint.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Xiaomeng Zhao hai 4 meses
pai
achega
07b4cbc0ec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      projects/multi_gpu_v2/_config_endpoint.py

+ 1 - 1
projects/multi_gpu_v2/_config_endpoint.py

@@ -38,7 +38,7 @@ def config_endpoint():
     
     elif os.environ['MINERU_MODEL_SOURCE'] == 'modelscope':
         try:
-            response = requests.head(model_list_url, timeout=TIMEOUT)
+            response = requests.head(modelscope_url, timeout=TIMEOUT)
             if response.ok:
                 logging.info(f"Successfully connected to ModelScope. Using 'modelscope' as model source.")
                 return True