Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1347,9 +1347,8 @@ with gr.Blocks(theme='Pijush2023/scikit-learn-pijush') as demo:
|
|
1347 |
|
1348 |
# Example Prompts Table
|
1349 |
gr.Markdown("<h2 style='color: blue;'>Helpful Prompts</h2>")
|
1350 |
-
|
1351 |
-
|
1352 |
-
gr.Row(gr.Button(prompt).click(fn=insert_prompt, inputs=prompt, outputs=chat_input))
|
1353 |
|
1354 |
clear_button = gr.Button("Clear")
|
1355 |
clear_button.click(lambda: [None, None], outputs=[chat_input, state])
|
@@ -1396,3 +1395,4 @@ demo.launch(show_error=True)
|
|
1396 |
|
1397 |
|
1398 |
|
|
|
|
1347 |
|
1348 |
# Example Prompts Table
|
1349 |
gr.Markdown("<h2 style='color: blue;'>Helpful Prompts</h2>")
|
1350 |
+
for prompt in example_prompts:
|
1351 |
+
gr.Button(prompt).click(fn=insert_prompt, inputs=prompt, outputs=chat_input)
|
|
|
1352 |
|
1353 |
clear_button = gr.Button("Clear")
|
1354 |
clear_button.click(lambda: [None, None], outputs=[chat_input, state])
|
|
|
1395 |
|
1396 |
|
1397 |
|
1398 |
+
|