Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -9,16 +9,14 @@ import spaces
|
|
9 |
import torch
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
12 |
-
|
13 |
DESCRIPTIONx = """
|
|
|
|
|
14 |
<div style="text-align:center">
|
15 |
<iframe src="https://prithivmlmods-hamster-static.static.hf.space/index.html" width="560" height="315" frameborder="0" allowfullscreen></iframe>
|
16 |
</div>
|
17 |
-
|
18 |
-
## STABLE HAMSTER
|
19 |
"""
|
20 |
|
21 |
-
|
22 |
# Use environment variables for flexibility
|
23 |
MODEL_ID = os.getenv("MODEL_REPO")
|
24 |
MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "4096"))
|
@@ -226,4 +224,4 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
226 |
)
|
227 |
|
228 |
if __name__ == "__main__":
|
229 |
-
demo.queue(max_size=50).launch()
|
|
|
9 |
import torch
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
|
|
12 |
DESCRIPTIONx = """
|
13 |
+
## STABLE HAMSTER
|
14 |
+
|
15 |
<div style="text-align:center">
|
16 |
<iframe src="https://prithivmlmods-hamster-static.static.hf.space/index.html" width="560" height="315" frameborder="0" allowfullscreen></iframe>
|
17 |
</div>
|
|
|
|
|
18 |
"""
|
19 |
|
|
|
20 |
# Use environment variables for flexibility
|
21 |
MODEL_ID = os.getenv("MODEL_REPO")
|
22 |
MAX_IMAGE_SIZE = int(os.getenv("MAX_IMAGE_SIZE", "4096"))
|
|
|
224 |
)
|
225 |
|
226 |
if __name__ == "__main__":
|
227 |
+
demo.queue(max_size=50).launch()
|