Clémentine commited on
Commit
8c2b68f
·
1 Parent(s): f5cbbfe
Files changed (2) hide show
  1. app.py +1 -5
  2. utils/io.py +2 -1
app.py CHANGED
@@ -63,11 +63,7 @@ def create_app() -> gr.Blocks:
63
  # Event handlers
64
  init_btn.click(
65
  fn=initialize_models_providers_file,
66
- outputs=output
67
- )
68
- init_btn.click(
69
- fn=load_models_providers_str,
70
- outputs=models_providers_display
71
  )
72
 
73
  launch_btn.click(
 
63
  # Event handlers
64
  init_btn.click(
65
  fn=initialize_models_providers_file,
66
+ outputs=[output, models_providers_display]
 
 
 
 
67
  )
68
 
69
  launch_btn.click(
utils/io.py CHANGED
@@ -45,7 +45,8 @@ def initialize_models_providers_file(file_path: str = globals.LOCAL_CONFIG_FILE)
45
  continue
46
 
47
  print(f"Successfully wrote {count} model-provider combinations to {file_path}")
48
- return f"Initialized {count} model-provider combinations"
 
49
 
50
 
51
  def load_models_providers_str(file_path: str = globals.LOCAL_CONFIG_FILE) -> str:
 
45
  continue
46
 
47
  print(f"Successfully wrote {count} model-provider combinations to {file_path}")
48
+
49
+ return f"Initialized {count} model-provider combinations", load_models_providers_str()
50
 
51
 
52
  def load_models_providers_str(file_path: str = globals.LOCAL_CONFIG_FILE) -> str: