sidharthg commited on
Commit
4527996
·
verified ·
1 Parent(s): e4a95ff

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -548,13 +548,13 @@ with gr.Blocks(title="Stable Diffusion Style Explorer") as demo:
548
  gr.Markdown(f"**{style_name}**: {config['description']} | Token: `{config['token']}` | Default Seed: `{config['default_seed']}`")
549
 
550
  # Initialize pipeline on startup
551
- #initialize_pipeline()
552
-
553
 
 
 
554
 
 
555
  if __name__ == "__main__":
556
  print("RUNNING THIS FILE:", __file__)
557
- demo.launch(server_name="0.0.0.0", server_port=7860,theme=gr.themes.Soft(), share=True)
558
-
559
- #demo.launch()
560
 
 
548
  gr.Markdown(f"**{style_name}**: {config['description']} | Token: `{config['token']}` | Default Seed: `{config['default_seed']}`")
549
 
550
  # Initialize pipeline on startup
551
+ initialize_pipeline()
 
552
 
553
+ # Enable queue for long-running Stable Diffusion tasks (Required for Spaces)
554
+ demo.queue()
555
 
556
+ # Launch the app
557
  if __name__ == "__main__":
558
  print("RUNNING THIS FILE:", __file__)
559
+ demo.launch(server_name="0.0.0.0", server_port=7860, theme=gr.themes.Soft())
 
 
560