Gaurav-2273 commited on
Commit
bb77715
1 Parent(s): 13ab2f2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -137,7 +137,8 @@ def answer_query(question: str):
137
  return chat_history
138
 
139
  with gr.Blocks() as demo:
140
- chatbot = gr.Chatbot(label="Chatbot", title="PDF QA System", description="Ask questions based on the provided PDF.")
 
141
  question = gr.Textbox(label="Ask a question", placeholder="Type your question...")
142
 
143
  question.submit(answer_query, inputs=[question], outputs=[chatbot])
 
137
  return chat_history
138
 
139
  with gr.Blocks() as demo:
140
+ interface=gr.Interface(title="PDF QA System", description="Ask questions based on the provided PDF.")
141
+ chatbot = gr.Chatbot(label="Chatbot")
142
  question = gr.Textbox(label="Ask a question", placeholder="Type your question...")
143
 
144
  question.submit(answer_query, inputs=[question], outputs=[chatbot])