Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -196,6 +196,9 @@ def load_user_guide():
|
|
196 |
with open('user_guide.txt', 'r') as file:
|
197 |
return file.read()
|
198 |
|
|
|
|
|
|
|
199 |
# Create the chat interface using Gradio Blocks
|
200 |
with gr.Blocks() as demo:
|
201 |
with gr.Tabs():
|
@@ -204,7 +207,7 @@ with gr.Blocks() as demo:
|
|
204 |
|
205 |
gr.Markdown("## Context")
|
206 |
with gr.Group():
|
207 |
-
model_dropdown = gr.Dropdown(choices=list(
|
208 |
user_dropdown = gr.Dropdown(choices=user_names, label="Select User Name")
|
209 |
initial_story = stories[0]["title"] if stories else None
|
210 |
story_dropdown = gr.Dropdown(choices=[story["title"] for story in stories], label="Select Story", value=initial_story)
|
|
|
196 |
with open('user_guide.txt', 'r') as file:
|
197 |
return file.read()
|
198 |
|
199 |
+
# Combine both model dictionaries
|
200 |
+
all_models = {**models, **quantized_models}
|
201 |
+
|
202 |
# Create the chat interface using Gradio Blocks
|
203 |
with gr.Blocks() as demo:
|
204 |
with gr.Tabs():
|
|
|
207 |
|
208 |
gr.Markdown("## Context")
|
209 |
with gr.Group():
|
210 |
+
model_dropdown = gr.Dropdown(choices=list(all_models.keys()), label="Select Model", value=default_model_name)
|
211 |
user_dropdown = gr.Dropdown(choices=user_names, label="Select User Name")
|
212 |
initial_story = stories[0]["title"] if stories else None
|
213 |
story_dropdown = gr.Dropdown(choices=[story["title"] for story in stories], label="Select Story", value=initial_story)
|