nikhmr1235 commited on
Commit
187f700
·
verified ·
1 Parent(s): 0163219

fix for ValueError below

Browse files

raise ValueError(

ValueError: Examples must be a list of lists when additional inputs are provided.

Files changed (1) hide show
  1. app.py +1 -1
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