Omnibus commited on
Commit
3e662a4
1 Parent(s): 7e4fb7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -271,11 +271,16 @@ with gr.Blocks() as app:
271
  stop_button=gr.Button("Stop")
272
  clear_btn = gr.Button("Clear")
273
  with gr.Row():
274
- data=gr.Textbox(label="Input Data (paste text)", lines=6)
275
- file=gr.File(label="Input File (.pdf .txt)")
 
 
 
 
 
276
  #text=gr.JSON()
277
  #inp_query.change(search_models,inp_query,models_dd)
278
  clear_btn.click(clear_fn,None,[prompt,chatbot])
279
- go=button.click(summarize,[prompt,chatbot,data,file],[prompt,chatbot])
280
  stop_button.click(None,None,None,cancels=[go])
281
  app.launch(server_port=7860,show_api=False)
 
271
  stop_button=gr.Button("Stop")
272
  clear_btn = gr.Button("Clear")
273
  with gr.Row():
274
+ with gr.Tab("Text"):
275
+ data=gr.Textbox(label="Input Data (paste text)", lines=6)
276
+ with gr.Tab("File"):
277
+ file=gr.File(label="Input File (.pdf .txt)")
278
+ with gr.Tab("URL"):
279
+ url = gr.Textbox(label="URL")
280
+
281
  #text=gr.JSON()
282
  #inp_query.change(search_models,inp_query,models_dd)
283
  clear_btn.click(clear_fn,None,[prompt,chatbot])
284
+ go=button.click(summarize,[prompt,chatbot,data,file,url],[prompt,chatbot])
285
  stop_button.click(None,None,None,cancels=[go])
286
  app.launch(server_port=7860,show_api=False)