yuhuili commited on
Commit
75241d8
1 Parent(s): 21ca00e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -295,6 +295,11 @@ custom_css = """
295
  color: red;
296
  font-size: 30px;
297
  }"""
 
 
 
 
 
298
 
299
  with gr.Blocks(css=custom_css) as demo:
300
  gs = gr.State({"pure_history": []})
@@ -316,6 +321,8 @@ with gr.Blocks(css=custom_css) as demo:
316
 
317
 
318
  msg = gr.Textbox(label="Your input")
 
 
319
  with gr.Row():
320
  send_button = gr.Button("Send")
321
  stop_button = gr.Button("Stop")
 
295
  color: red;
296
  font-size: 30px;
297
  }"""
298
+ examples = [
299
+ ["Introduce artificial intelligence to me."],
300
+ ["What are the benefits of renewable energy?"],
301
+ ["How does a neural network work?"]
302
+ ]
303
 
304
  with gr.Blocks(css=custom_css) as demo:
305
  gs = gr.State({"pure_history": []})
 
321
 
322
 
323
  msg = gr.Textbox(label="Your input")
324
+ gr.Examples(examples=examples, inputs=msg)
325
+
326
  with gr.Row():
327
  send_button = gr.Button("Send")
328
  stop_button = gr.Button("Stop")