Nupur Kumari commited on
Commit
dc3ca3a
1 Parent(s): 61ea052

custom-diffusion-space

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -111,9 +111,9 @@ def create_training_demo(trainer: Trainer,
111
  training_status = gr.Markdown()
112
  output_files = gr.Files(label='Trained Weight Files')
113
 
114
- # run_button.click(fn=pipe.clear,
115
- # inputs=None,
116
- # outputs=None,)
117
  run_button.click(fn=trainer.run,
118
  inputs=[
119
  base_model,
@@ -281,4 +281,4 @@ with gr.Blocks(css='style.css') as demo:
281
  with gr.TabItem('Upload'):
282
  create_upload_demo()
283
 
284
- demo.queue(default_enabled=False).launch(share=False)
 
111
  training_status = gr.Markdown()
112
  output_files = gr.Files(label='Trained Weight Files')
113
 
114
+ run_button.click(fn=pipe.clear,
115
+ inputs=None,
116
+ outputs=None,)
117
  run_button.click(fn=trainer.run,
118
  inputs=[
119
  base_model,
 
281
  with gr.TabItem('Upload'):
282
  create_upload_demo()
283
 
284
+ demo.queue(default_enabled=False).launch(share=True)