yxmauw commited on
Commit
f2aad38
·
verified ·
1 Parent(s): 19b3bf4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -45,10 +45,14 @@ with gr.Blocks() as demo:
45
  gr.Markdown("## GPT4All Text Generation Experiment")
46
 
47
  # Dropdown to select model
48
- model_selection = gr.Dropdown(label="Select an LLM", options=model_choices(), value=next(iter(model_description), None))
 
 
 
 
49
 
50
  # Textbox to show model description
51
- explanation = gr.Textbox(label="Model Description", value="Model description", lines=10, readonly=True)
52
 
53
  # Link the dropdown with the textbox to update the description based on the selected model
54
  model_selection.change(fn=llm_intro, inputs=model_selection, outputs=explanation)
 
45
  gr.Markdown("## GPT4All Text Generation Experiment")
46
 
47
  # Dropdown to select model
48
+ model_selection = gr.Dropdown(choices=model_choices(),
49
+ multiselect=False,
50
+ label="LLMs to choose from",
51
+ type="value",
52
+ value="orca-mini-3b-gguf2-q4_0.gguf")
53
 
54
  # Textbox to show model description
55
+ explanation = gr.Textbox(label="Model Description", lines=10, readonly=True)
56
 
57
  # Link the dropdown with the textbox to update the description based on the selected model
58
  model_selection.change(fn=llm_intro, inputs=model_selection, outputs=explanation)