arjunanand13 commited on
Commit
243aa91
·
verified ·
1 Parent(s): 645839a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  import os
3
  import sqlite3
4
  import requests
@@ -65,6 +64,16 @@ with gr.Blocks() as demo:
65
  user_input = gr.Textbox(placeholder="Type your question here...", lines=2)
66
  submit_btn = gr.Button("Submit")
67
  response_box = gr.Textbox(label="Answer")
 
 
 
 
 
 
 
 
 
 
68
  submit_btn.click(fn=handle_query, inputs=user_input, outputs=response_box)
69
 
70
  if __name__ == "__main__":
 
 
1
  import os
2
  import sqlite3
3
  import requests
 
64
  user_input = gr.Textbox(placeholder="Type your question here...", lines=2)
65
  submit_btn = gr.Button("Submit")
66
  response_box = gr.Textbox(label="Answer")
67
+ # Sample questions
68
+ gr.Examples(
69
+ examples=[
70
+ ["What is the max revenue product today?"],
71
+ ["Who invented the light bulb?"],
72
+ ["Tell me a joke about cats."],
73
+ ],
74
+ inputs=user_input,
75
+ outputs=response_box,
76
+ )
77
  submit_btn.click(fn=handle_query, inputs=user_input, outputs=response_box)
78
 
79
  if __name__ == "__main__":