Clémentine commited on
Commit
88f3584
·
1 Parent(s): 99dd7b3

model_prov

Browse files
Files changed (2) hide show
  1. app.py +2 -3
  2. model_providers.txt +0 -9
app.py CHANGED
@@ -3,7 +3,6 @@ import time
3
  from apscheduler.schedulers.background import BackgroundScheduler
4
  import threading
5
  import globals
6
- from globals import TASKS, LOCAL_CONFIG_FILE
7
  from utils.io import initialize_models_providers_file, save_results, load_results, load_models_providers, get_results_table
8
  from utils.jobs import run_single_job, launch_jobs, update_job_statuses
9
  from typing import List, Optional
@@ -70,7 +69,7 @@ def create_app() -> gr.Blocks:
70
  relaunch_btn = gr.Button("Relaunch Job", variant="secondary")
71
 
72
  def update_model_choices() -> gr.update:
73
- models_providers = load_models_providers(LOCAL_CONFIG_FILE)
74
  model_choices = sorted(list(set([mp[0] for mp in models_providers])))
75
  return gr.update(choices=model_choices, value=model_choices[0] if model_choices else None)
76
 
@@ -81,7 +80,7 @@ def create_app() -> gr.Blocks:
81
  return gr.update(choices=[])
82
 
83
  # Get providers for the selected model from the config file
84
- models_providers = load_models_providers(LOCAL_CONFIG_FILE)
85
  providers = [mp[1] for mp in models_providers if mp[0] == model]
86
 
87
  return gr.update(choices=providers, value=providers[0] if providers else None)
 
3
  from apscheduler.schedulers.background import BackgroundScheduler
4
  import threading
5
  import globals
 
6
  from utils.io import initialize_models_providers_file, save_results, load_results, load_models_providers, get_results_table
7
  from utils.jobs import run_single_job, launch_jobs, update_job_statuses
8
  from typing import List, Optional
 
69
  relaunch_btn = gr.Button("Relaunch Job", variant="secondary")
70
 
71
  def update_model_choices() -> gr.update:
72
+ models_providers = load_models_providers(globals.LOCAL_CONFIG_FILE)
73
  model_choices = sorted(list(set([mp[0] for mp in models_providers])))
74
  return gr.update(choices=model_choices, value=model_choices[0] if model_choices else None)
75
 
 
80
  return gr.update(choices=[])
81
 
82
  # Get providers for the selected model from the config file
83
+ models_providers = load_models_providers(globals.LOCAL_CONFIG_FILE)
84
  providers = [mp[1] for mp in models_providers if mp[0] == model]
85
 
86
  return gr.update(choices=providers, value=providers[0] if providers else None)
model_providers.txt DELETED
@@ -1,9 +0,0 @@
1
- # Models and Providers Configuration
2
- # Format: model_name provider_name
3
- # Auto-generated on 2025-10-10 15:38:11
4
-
5
- deepseek-ai/DeepSeek-R1 fireworks-ai
6
- deepseek-ai/DeepSeek-R1 hyperbolic
7
- deepseek-ai/DeepSeek-R1 novita
8
- deepseek-ai/DeepSeek-R1 together
9
- deepseek-ai/DeepSeek-R1 sambanova