zahraanaji commited on
Commit
b1428ae
·
verified ·
1 Parent(s): 837ed0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -66,13 +66,12 @@ def process_pdf_and_ask_question(pdf_file,question):
66
  return res["answer"]
67
 
68
 
69
- app=gr.interface(fn=process_pdf_and_ask_question,
 
70
  inputs=[gr.File(file_count="single", type="filepath"), gr.Textbox(lines=2, placeholder="Ask a question...")],
71
  outputs="text",
72
  title="PDF Q&A",
73
  description="Upload a PDF and ask questions about it.",
74
 
75
- )
76
-
77
- app.launch()
78
 
 
66
  return res["answer"]
67
 
68
 
69
+
70
+ app=gr.Interface(fn=process_pdf_and_ask_question,
71
  inputs=[gr.File(file_count="single", type="filepath"), gr.Textbox(lines=2, placeholder="Ask a question...")],
72
  outputs="text",
73
  title="PDF Q&A",
74
  description="Upload a PDF and ask questions about it.",
75
 
76
+ ).launch()
 
 
77