Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ def predict(*args):
|
|
5 |
return {"inputs": list[args]}
|
6 |
|
7 |
with gr.Blocks() as demo:
|
8 |
-
s = gr.CheckboxGroup(choices=['Text-to-Image', 'Image-to-Image'],value='Text-to-Image',
|
9 |
|
10 |
@gr.render(inputs=s, triggers=[s.input])
|
11 |
def render(value):
|
@@ -14,7 +14,8 @@ with gr.Blocks() as demo:
|
|
14 |
with gr.Tab(label=Mode):
|
15 |
if value=='Text-to-Image':
|
16 |
gr.Markdown(value=Mode)
|
17 |
-
gr.load('
|
|
|
18 |
else:
|
19 |
gr.Markdown(value=Mode)
|
20 |
gr.load('stabilityai/stable-diffusion-xl-refiner-1.0', src='models') #.launch(height=1000, quiet=True)
|
@@ -24,4 +25,4 @@ with gr.Blocks() as demo:
|
|
24 |
#json = gr.JSON()
|
25 |
#btn = gr.Button("RUN")
|
26 |
#btn.click(fn=predict, inputs=texts, outputs=json)
|
27 |
-
demo.launch(debug=
|
|
|
5 |
return {"inputs": list[args]}
|
6 |
|
7 |
with gr.Blocks() as demo:
|
8 |
+
s = gr.CheckboxGroup(choices=['Text-to-Image', 'Image-to-Image'], interactive=True) #value='Text-to-Image',
|
9 |
|
10 |
@gr.render(inputs=s, triggers=[s.input])
|
11 |
def render(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)
|
|
|
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)
|