Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ import spaces
|
|
9 |
import torch
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
12 |
-
html_file_url = "https://prithivhamster.vercel.app/"
|
13 |
-
html_content = f'<iframe src="{html_file_url}" style="width:100%; height:400px; border:none"></iframe>'
|
14 |
|
15 |
DESCRIPTIONx = """## STABLE HAMSTER """
|
16 |
|
@@ -126,7 +126,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
126 |
run_button = gr.Button("Run", scale=0)
|
127 |
result = gr.Gallery(label="Result", columns=1, preview=True, show_label=False)
|
128 |
|
129 |
-
with gr.Accordion("Advanced options", open=False
|
130 |
num_images = gr.Slider(
|
131 |
label="Number of Images",
|
132 |
minimum=1,
|
@@ -216,6 +216,6 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
216 |
outputs=[result, seed],
|
217 |
api_name="run",
|
218 |
)
|
219 |
-
gr.HTML(html_content)
|
220 |
if __name__ == "__main__":
|
221 |
demo.queue(max_size=40).launch()
|
|
|
9 |
import torch
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
12 |
+
#html_file_url = "https://prithivhamster.vercel.app/"
|
13 |
+
#html_content = f'<iframe src="{html_file_url}" style="width:100%; height:400px; border:none"></iframe>'
|
14 |
|
15 |
DESCRIPTIONx = """## STABLE HAMSTER """
|
16 |
|
|
|
126 |
run_button = gr.Button("Run", scale=0)
|
127 |
result = gr.Gallery(label="Result", columns=1, preview=True, show_label=False)
|
128 |
|
129 |
+
with gr.Accordion("Advanced options", open=False):
|
130 |
num_images = gr.Slider(
|
131 |
label="Number of Images",
|
132 |
minimum=1,
|
|
|
216 |
outputs=[result, seed],
|
217 |
api_name="run",
|
218 |
)
|
219 |
+
#gr.HTML(html_content)
|
220 |
if __name__ == "__main__":
|
221 |
demo.queue(max_size=40).launch()
|