Mahadih534 commited on
Commit
84c11f9
·
verified ·
1 Parent(s): a6d92f2

Updated UI

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -296,7 +296,7 @@ with gr.Blocks(theme="soft",css=css) as demo:
296
  label="Please Select a Data Source")
297
  with gr.Column(visible=False) as webPanel:
298
  with gr.Row(equal_height=True,variant='compact'):
299
- text = gr.Textbox(scale=2, placeholder="Enter Website link")
300
  btnAdd = gr.Button("+ Add Link",scale=1)
301
  show = gr.Textbox(label="Your Selected Web Link",show_copy_button=True)
302
  imgWeb = gr.Image(interactive=False,height="80",width="100",)
@@ -307,7 +307,7 @@ with gr.Blocks(theme="soft",css=css) as demo:
307
 
308
  clearBtn = gr.ClearButton(components=[imgFile,raw_file,show,imgWeb,text])
309
  submit = gr.Button("Submit Data to ChatBot")
310
- outT = gr.Textbox()
311
 
312
  select.change(fn=toggle,inputs=[select],outputs=[webPanel,filePanel])
313
  btnAdd.click(fn=addText,inputs=[text],outputs=[show]).success(fn=getWebImage,inputs=[text],outputs=[imgWeb])
 
296
  label="Please Select a Data Source")
297
  with gr.Column(visible=False) as webPanel:
298
  with gr.Row(equal_height=True,variant='compact'):
299
+ text = gr.Textbox(show_label=False, scale=2, placeholder="Enter Website link")
300
  btnAdd = gr.Button("+ Add Link",scale=1)
301
  show = gr.Textbox(label="Your Selected Web Link",show_copy_button=True)
302
  imgWeb = gr.Image(interactive=False,height="80",width="100",)
 
307
 
308
  clearBtn = gr.ClearButton(components=[imgFile,raw_file,show,imgWeb,text])
309
  submit = gr.Button("Submit Data to ChatBot")
310
+ outT = gr.Textbox(show_label=False)
311
 
312
  select.change(fn=toggle,inputs=[select],outputs=[webPanel,filePanel])
313
  btnAdd.click(fn=addText,inputs=[text],outputs=[show]).success(fn=getWebImage,inputs=[text],outputs=[imgWeb])