cogcorp commited on
Commit
973e299
·
1 Parent(s): 245291e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -248,16 +248,15 @@ with gr.Blocks() as demo:
248
  with gr.Row():
249
 
250
  with gr.Group():
251
- url=gr.Textbox(label='URL here')
252
  file=gr.File(label='Upload your PDF/ Research Paper * NO CONFIDENTIAL FILES SHOULD BE USED *', file_types=['.pdf'])
 
253
  question=gr.Textbox(label='Enter your question here')
254
  btn=gr.Button(value='Submit')
255
  btn.style(full_width=False)
256
 
257
  with gr.Group():
258
- gr.Image("logo.jpg")
259
  answer = gr.Textbox(label='The answer to your question is :')
260
-
261
  btn.click(main_loop, inputs=[url, file, question], outputs=[answer])
262
 
263
 
 
248
  with gr.Row():
249
 
250
  with gr.Group():
 
251
  file=gr.File(label='Upload your PDF/ Research Paper * NO CONFIDENTIAL FILES SHOULD BE USED *', file_types=['.pdf'])
252
+ url=gr.Textbox(label=' ➡️ OR ⬅️ Enter PDF URL Here')
253
  question=gr.Textbox(label='Enter your question here')
254
  btn=gr.Button(value='Submit')
255
  btn.style(full_width=False)
256
 
257
  with gr.Group():
 
258
  answer = gr.Textbox(label='The answer to your question is :')
259
+ gr.Image("logo.jpg")
260
  btn.click(main_loop, inputs=[url, file, question], outputs=[answer])
261
 
262