RSHVR commited on
Commit
ffb8329
·
verified ·
1 Parent(s): 707481a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -26,6 +26,8 @@ def update_model_choices(provider):
26
  """Update model dropdown choices based on selected provider"""
27
  if provider == "Cohere":
28
  return gr.Dropdown(choices=COHERE_MODELS, value=COHERE_MODELS[0])
 
 
29
  else:
30
  return gr.Dropdown(choices=[], value=None)
31
 
@@ -137,8 +139,8 @@ with gr.Blocks() as demo:
137
  )
138
  model = gr.Dropdown(
139
  info="Model",
140
- choices=[COHERE_MODELS, COHERE_LABS_MODELS],
141
- value=[COHERE_MODELS[0], COHERE_LABS_MODELS[0]],
142
  elem_id="model_dropdown",
143
  interactive=True,
144
  show_label=False
 
26
  """Update model dropdown choices based on selected provider"""
27
  if provider == "Cohere":
28
  return gr.Dropdown(choices=COHERE_MODELS, value=COHERE_MODELS[0])
29
+ elif provider =="Cohere Labs":
30
+ return gr.Dropdown(choices=COHERE_LABS_MODELS, value=COHERE_LABS_MODELS[0])
31
  else:
32
  return gr.Dropdown(choices=[], value=None)
33
 
 
139
  )
140
  model = gr.Dropdown(
141
  info="Model",
142
+ choices=COHERE_MODELS,
143
+ value=COHERE_MODELS[0],
144
  elem_id="model_dropdown",
145
  interactive=True,
146
  show_label=False