shitaot commited on
Commit
2041c76
Β·
1 Parent(s): 4ed7887

remove clear and load button

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -186,11 +186,11 @@ if __name__=='__main__':
186
 
187
  with gr.Row():
188
  submit_btn = gr.Button("Generate panorama")
189
- clear_btn = gr.Button("Clear all texts")
190
- clear_btn.click(
191
- clear,
192
- outputs=inputs+[textbox1]
193
- )
194
 
195
  with gr.Accordion("Expand/hide examples") as acc:
196
  for i in range(0, len(examples_basic)):
@@ -226,12 +226,12 @@ if __name__=='__main__':
226
  with gr.Row():
227
 
228
  submit_btn = gr.Button("Generate panorama")
229
- clear_btn = gr.Button("Clear all texts")
230
- clear_btn.click(
231
- clear,
232
- outputs=inputs+[textbox1],
233
- queue=True,
234
- )
235
  with gr.Accordion("Expand/hide examples") as acc_advanced:
236
  for i, example in enumerate(examples_advanced):
237
  with gr.Row():
@@ -276,4 +276,4 @@ if __name__=='__main__':
276
  outputs[8].render()
277
 
278
  demo.queue()
279
- demo.launch()
 
186
 
187
  with gr.Row():
188
  submit_btn = gr.Button("Generate panorama")
189
+ # clear_btn = gr.Button("Clear all texts")
190
+ # clear_btn.click(
191
+ # clear,
192
+ # outputs=inputs+[textbox1]
193
+ # )
194
 
195
  with gr.Accordion("Expand/hide examples") as acc:
196
  for i in range(0, len(examples_basic)):
 
226
  with gr.Row():
227
 
228
  submit_btn = gr.Button("Generate panorama")
229
+ # clear_btn = gr.Button("Clear all texts")
230
+ # clear_btn.click(
231
+ # clear,
232
+ # outputs=inputs+[textbox1],
233
+ # queue=True,
234
+ # )
235
  with gr.Accordion("Expand/hide examples") as acc_advanced:
236
  for i, example in enumerate(examples_advanced):
237
  with gr.Row():
 
276
  outputs[8].render()
277
 
278
  demo.queue()
279
+ demo.launch(share=True)