Nymbo commited on
Commit
95bc410
·
verified ·
1 Parent(s): 3f8952c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -234,11 +234,11 @@ def filter_models(search_term):
234
 
235
  def set_custom_model_from_radio(selected):
236
  """
237
- This function will no longer update the custom model box.
238
- Instead, we just return an empty string to ensure the custom model remains empty.
239
  """
240
  print(f"Featured model selected: {selected}")
241
- return "" # Return empty string to keep custom model box empty
242
 
243
  # Create the Gradio interface
244
  demo = gr.ChatInterface(
 
234
 
235
  def set_custom_model_from_radio(selected):
236
  """
237
+ This function will get triggered whenever someone picks a model from the 'Featured Models' radio.
238
+ We will update the Custom Model text box with that selection automatically.
239
  """
240
  print(f"Featured model selected: {selected}")
241
+ return selected
242
 
243
  # Create the Gradio interface
244
  demo = gr.ChatInterface(