Spaces:
Runtime error
Runtime error
Add examples
Browse files
app.py
CHANGED
@@ -58,6 +58,10 @@ with gr.Blocks() as demo:
|
|
58 |
state = gr.State([[],[]])
|
59 |
chatbot = gr.Chatbot()
|
60 |
text = gr.Textbox(label="Ask a question (press enter to submit)", default_value="How are you?")
|
|
|
|
|
|
|
|
|
61 |
|
62 |
text.submit(get_model_answer, [text, state], [chatbot, state])
|
63 |
text.submit(lambda x: "", text, text)
|
|
|
58 |
state = gr.State([[],[]])
|
59 |
chatbot = gr.Chatbot()
|
60 |
text = gr.Textbox(label="Ask a question (press enter to submit)", default_value="How are you?")
|
61 |
+
gr.Examples(
|
62 |
+
["What does it mean to demistify ai?", "and why is that useful?"],
|
63 |
+
text
|
64 |
+
)
|
65 |
|
66 |
text.submit(get_model_answer, [text, state], [chatbot, state])
|
67 |
text.submit(lambda x: "", text, text)
|