PabloVD commited on
Commit
00b20b0
1 Parent(s): 96dd556

Include example questions in gr.chatbot

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -96,6 +96,7 @@ example_questions = [
96
  # Define customized Gradio chatbot
97
  chatbot = gr.Chatbot([{"role":"assistant", "content":greetingsmessage}],
98
  type="messages",
 
99
  avatar_images=["ims/userpic.png","ims/camelslogo.jpg"],
100
  height="60vh")
101
 
 
96
  # Define customized Gradio chatbot
97
  chatbot = gr.Chatbot([{"role":"assistant", "content":greetingsmessage}],
98
  type="messages",
99
+ examples=[{"text":text} for text in example_questions],
100
  avatar_images=["ims/userpic.png","ims/camelslogo.jpg"],
101
  height="60vh")
102
 
requirements.txt CHANGED
@@ -7,4 +7,4 @@ pypdf==5.0.1
7
  sentence-transformers==2.2.2
8
  huggingface_hub==0.25.2
9
  InstructorEmbedding
10
- gradio==4.*
 
7
  sentence-transformers==2.2.2
8
  huggingface_hub==0.25.2
9
  InstructorEmbedding
10
+ gradio==5.*