saritha commited on
Commit
8d84dff
·
verified ·
1 Parent(s): 701dcc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,9 +31,9 @@ async def initialize(file_path, question):
31
  return "Error: Unable to process the document. Please ensure the PDF file is valid."
32
 
33
  # Define Gradio Interface
34
- input_file = gr.inputs.File(label="Upload PDF File")
35
- input_question = gr.inputs.Textbox(label="Ask about the document")
36
- output_text = gr.outputs.Textbox(label="Answer - GeminiPro")
37
 
38
  async def pdf_qa(file, question):
39
  answer = await initialize(file.name, question)
 
31
  return "Error: Unable to process the document. Please ensure the PDF file is valid."
32
 
33
  # Define Gradio Interface
34
+ input_file = gr.File(label="Upload PDF File")
35
+ input_question = gr.Textbox(label="Ask about the document")
36
+ output_text = gr.Textbox(label="Answer - GeminiPro")
37
 
38
  async def pdf_qa(file, question):
39
  answer = await initialize(file.name, question)