yukee1992 commited on
Commit
8c184bb
·
verified ·
1 Parent(s): e77b7eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -3,7 +3,6 @@ import torch
3
  from diffusers import StableDiffusionPipeline, EulerAncestralDiscreteScheduler
4
  import gradio as gr
5
  from PIL import Image
6
- import io
7
  import time
8
 
9
  # Force CPU usage
@@ -74,10 +73,9 @@ demo = gr.Interface(
74
  description="This free version runs on CPU. It's slower but gets the job done! Enter a scene description."
75
  )
76
 
77
- # Launch the app with more robust settings
78
  demo.launch(
79
  debug=True,
80
  server_name="0.0.0.0",
81
- share=False,
82
- enable_queue=True # This helps handle multiple requests properly
83
  )
 
3
  from diffusers import StableDiffusionPipeline, EulerAncestralDiscreteScheduler
4
  import gradio as gr
5
  from PIL import Image
 
6
  import time
7
 
8
  # Force CPU usage
 
73
  description="This free version runs on CPU. It's slower but gets the job done! Enter a scene description."
74
  )
75
 
76
+ # Launch the app with simple settings
77
  demo.launch(
78
  debug=True,
79
  server_name="0.0.0.0",
80
+ share=False
 
81
  )