Spaces:
Sleeping
Sleeping
fix for ValueError below
Browse filesraise ValueError(
ValueError: Examples must be a list of lists when additional inputs are provided.
app.py
CHANGED
|
@@ -151,7 +151,7 @@ with gr.Blocks(title="PDF Chatbot") as demo:
|
|
| 151 |
fn=chat_with_pdf,
|
| 152 |
chatbot=gr.Chatbot(type="messages"),
|
| 153 |
textbox=gr.Textbox(placeholder="Type your question here...", scale=7),
|
| 154 |
-
examples=["What is the main topic of the document?", "Summarize the key findings.", "Who are the authors?"],
|
| 155 |
title="Chat Interface",
|
| 156 |
theme="soft",
|
| 157 |
# Fix: Add the state as an additional input to the ChatInterface
|
|
|
|
| 151 |
fn=chat_with_pdf,
|
| 152 |
chatbot=gr.Chatbot(type="messages"),
|
| 153 |
textbox=gr.Textbox(placeholder="Type your question here...", scale=7),
|
| 154 |
+
examples=[["What is the main topic of the document?"], ["Summarize the key findings."], ["Who are the authors?"]],
|
| 155 |
title="Chat Interface",
|
| 156 |
theme="soft",
|
| 157 |
# Fix: Add the state as an additional input to the ChatInterface
|