Spaces:
Running
Running
Include example questions in gr.chatbot
Browse files- app.py +1 -0
- 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==
|
|
|
7 |
sentence-transformers==2.2.2
|
8 |
huggingface_hub==0.25.2
|
9 |
InstructorEmbedding
|
10 |
+
gradio==5.*
|