Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,16 +13,11 @@ with gr.Blocks() as demo:
|
|
| 13 |
for Mode in value:
|
| 14 |
with gr.Tab(label=Mode):
|
| 15 |
if value=='Text-to-Image':
|
| 16 |
-
gr.Markdown(value=Mode)
|
| 17 |
-
gr.load('stabilityai/stable-diffusion-xl-base-1.0', src='models')
|
| 18 |
#gr.load('minimaxir/sdxl-wrong-lora', src='models') #.launch(debug=True, quiet=True) #minimaxir/sdxl-wrong-lora stabilityai/sdxl-turbo ByteDance/SDXL-Lightning
|
| 19 |
else:
|
| 20 |
-
gr.Markdown(value=Mode)
|
| 21 |
-
gr.load('stabilityai/stable-diffusion-xl-refiner-1.0', src='models') #.launch(height=1000, quiet=True)
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
#texts.append(gr.Textbox())
|
| 25 |
-
#json = gr.JSON()
|
| 26 |
-
#btn = gr.Button("RUN")
|
| 27 |
-
#btn.click(fn=predict, inputs=texts, outputs=json)
|
| 28 |
-
demo.launch(debug=False, quiet=True)
|
|
|
|
| 13 |
for Mode in value:
|
| 14 |
with gr.Tab(label=Mode):
|
| 15 |
if value=='Text-to-Image':
|
| 16 |
+
#gr.Markdown(value=Mode)
|
| 17 |
+
demo_t2i = gr.load('stabilityai/stable-diffusion-xl-base-1.0', src='models')
|
| 18 |
#gr.load('minimaxir/sdxl-wrong-lora', src='models') #.launch(debug=True, quiet=True) #minimaxir/sdxl-wrong-lora stabilityai/sdxl-turbo ByteDance/SDXL-Lightning
|
| 19 |
else:
|
| 20 |
+
#gr.Markdown(value=Mode)
|
| 21 |
+
demo_t2i = gr.load('stabilityai/stable-diffusion-xl-refiner-1.0', src='models') #.launch(height=1000, quiet=True)
|
| 22 |
+
|
| 23 |
+
demo.launch(debug=True, quiet=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|