rgallardo commited on
Commit
965be30
1 Parent(s): d926c1f

Add examples

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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)