Spaces:
Running
Running
Commit
·
6f48f60
1
Parent(s):
82fd84a
Fixing default questions
Browse files
app.py
CHANGED
|
@@ -47,6 +47,10 @@ def agent_fn(prompt, model_name, api_key=None):
|
|
| 47 |
|
| 48 |
|
| 49 |
with gr.Blocks(title=TITLE) as iface:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
gr.Markdown(DESC)
|
| 51 |
|
| 52 |
with gr.Row():
|
|
@@ -69,7 +73,7 @@ with gr.Blocks(title=TITLE) as iface:
|
|
| 69 |
]
|
| 70 |
for question in sample_questions:
|
| 71 |
gr.Button(question).click(
|
| 72 |
-
lambda q=question: gr.
|
| 73 |
None,
|
| 74 |
prompt_input,
|
| 75 |
)
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
with gr.Blocks(title=TITLE) as iface:
|
| 50 |
+
with gr.Row():
|
| 51 |
+
with gr.Column(scale=1):
|
| 52 |
+
gr.Markdown("# " + TITLE)
|
| 53 |
+
|
| 54 |
gr.Markdown(DESC)
|
| 55 |
|
| 56 |
with gr.Row():
|
|
|
|
| 73 |
]
|
| 74 |
for question in sample_questions:
|
| 75 |
gr.Button(question).click(
|
| 76 |
+
lambda q=question: gr.update(value=q),
|
| 77 |
None,
|
| 78 |
prompt_input,
|
| 79 |
)
|