yxmauw commited on
Commit
81f5fb5
·
verified ·
1 Parent(s): 1d0c984

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -93,6 +93,11 @@ with gr.Blocks() as demo:
93
  value="orca-mini-3b-gguf2-q4_0.gguf",
94
  label="LLMs to choose from"
95
  )
 
 
 
 
 
96
  with gr.Column(scale=4):
97
  chatbot = gr.Chatbot(label="Conversation", value=[(None, "How may I help you today?")])
98
 
 
93
  value="orca-mini-3b-gguf2-q4_0.gguf",
94
  label="LLMs to choose from"
95
  )
96
+ explanation = gr.Textbox(label="Model Description", lines=3, interactive=False, value=llm_intro("orca-mini-3b-gguf2-q4_0.gguf"))
97
+
98
+ # Link the dropdown with the textbox to update the description based on the selected model
99
+ model_dropdown.change(fn=llm_intro, inputs=model_dropdown, outputs=explanation)
100
+
101
  with gr.Column(scale=4):
102
  chatbot = gr.Chatbot(label="Conversation", value=[(None, "How may I help you today?")])
103