Chad commited on
Commit
c8103ec
·
1 Parent(s): 4af0e65

fix example

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -72,14 +72,17 @@ with gr.Blocks() as interface:
72
  ["Qui était la première personne à marcher sur la lune?"]
73
  ]
74
 
 
 
 
 
 
75
  send_button.click(
76
  fn=generate_reply,
77
  inputs=[user_input, state],
78
  outputs=[chatbot, state, user_input]
79
  )
80
 
81
-
82
-
83
  reset_button = gr.Button("New Conversation")
84
  reset_button.click(lambda: [], outputs=[state])
85
 
 
72
  ["Qui était la première personne à marcher sur la lune?"]
73
  ]
74
 
75
+ gr.Examples(
76
+ examples=examples,
77
+ inputs=user_input
78
+ )
79
+
80
  send_button.click(
81
  fn=generate_reply,
82
  inputs=[user_input, state],
83
  outputs=[chatbot, state, user_input]
84
  )
85
 
 
 
86
  reset_button = gr.Button("New Conversation")
87
  reset_button.click(lambda: [], outputs=[state])
88