Spaces:
Running
Running
cache examples to try to fix examples not appearing in hugging face spaces
Browse files- app.py +2 -1
- requirements.txt +0 -1
app.py
CHANGED
@@ -96,7 +96,6 @@ example_questions = [
|
|
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 |
|
@@ -104,9 +103,11 @@ chatbot = gr.Chatbot([{"role":"assistant", "content":greetingsmessage}],
|
|
104 |
demo = gr.ChatInterface(handle_prompt,
|
105 |
type="messages",
|
106 |
title="CAMELS DocBot",
|
|
|
107 |
examples=example_questions,
|
108 |
theme=gr.themes.Soft(),
|
109 |
description=description,
|
|
|
110 |
chatbot=chatbot)
|
111 |
|
112 |
demo.launch()
|
|
|
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 |
|
|
|
103 |
demo = gr.ChatInterface(handle_prompt,
|
104 |
type="messages",
|
105 |
title="CAMELS DocBot",
|
106 |
+
fill_height=True,
|
107 |
examples=example_questions,
|
108 |
theme=gr.themes.Soft(),
|
109 |
description=description,
|
110 |
+
cache_examples=False,
|
111 |
chatbot=chatbot)
|
112 |
|
113 |
demo.launch()
|
requirements.txt
CHANGED
@@ -7,4 +7,3 @@ pypdf==5.0.1
|
|
7 |
sentence-transformers==2.2.2
|
8 |
huggingface_hub==0.25.2
|
9 |
InstructorEmbedding
|
10 |
-
gradio==5.*
|
|
|
7 |
sentence-transformers==2.2.2
|
8 |
huggingface_hub==0.25.2
|
9 |
InstructorEmbedding
|
|