bhaskartripathi commited on
Commit
b4d438a
·
1 Parent(s): 3aae3ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -176,7 +176,7 @@ with gr.Blocks() as demo:
176
  with gr.Group():
177
  gr.Markdown(f'<p style="text-align:center">Get your Open AI API key <a href="https://platform.openai.com/account/api-keys">here</a></p>')
178
  openAI_key = gr.inputs.Textbox(label='Enter your OpenAI API key here')
179
- files = gr.inputs.File(file_count="multiple", file_types=[".pdf"], label="Upload PDF files")
180
  question = gr.inputs.Textbox(label='Enter your question here')
181
  btn = gr.Button(value='Submit')
182
 
@@ -186,5 +186,3 @@ with gr.Blocks() as demo:
186
  btn.click(question_answer, inputs=[files, question, openAI_key], outputs=[answer])
187
 
188
  demo.launch()
189
-
190
-
 
176
  with gr.Group():
177
  gr.Markdown(f'<p style="text-align:center">Get your Open AI API key <a href="https://platform.openai.com/account/api-keys">here</a></p>')
178
  openAI_key = gr.inputs.Textbox(label='Enter your OpenAI API key here')
179
+ files = gr.inputs.File(file_count="multiple", accept=".pdf", label="Upload PDF files")
180
  question = gr.inputs.Textbox(label='Enter your question here')
181
  btn = gr.Button(value='Submit')
182
 
 
186
  btn.click(question_answer, inputs=[files, question, openAI_key], outputs=[answer])
187
 
188
  demo.launch()