Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,6 @@ m_out = ("""
|
|
39 |
loading=("""
|
40 |
<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>""")
|
41 |
|
42 |
-
|
43 |
def ac():
|
44 |
def clear():
|
45 |
return gr.update(value=0),gr.update(value=0)
|
@@ -91,7 +90,7 @@ def ac():
|
|
91 |
t_switch=gr.Textbox(value=0)
|
92 |
def clear_all():
|
93 |
return "",None,None,None,None,None,None,1,gr.HTML.update("<div></div>")
|
94 |
-
fac_b = gr.Textbox(value="",
|
95 |
|
96 |
def noth():
|
97 |
return gr.HTML.update("<div></div>")
|
@@ -108,17 +107,4 @@ def ac():
|
|
108 |
#btn2.click(noth,None,message,cancels=[b1,sta,b2,b3,b4,b5,swi],show_progress=False)
|
109 |
btn2.click(clear_all, None,[fac_b,put,out1,out2,out3,out4,t_state,t_switch,message],cancels=[b1,sta,b2,b3,b4,b5,swi],show_progress=False)
|
110 |
b.queue(concurrency_count=100).launch(show_api=False)
|
111 |
-
|
112 |
-
with gr.Blocks() as app:
|
113 |
-
gr.Markdown(
|
114 |
-
'''
|
115 |
-
<center><h1>VectoDon AI</h1></span>
|
116 |
-
<span font-size:16px;">Generate stunning high quality artwork with Stable Diffusion</span>
|
117 |
-
</center>
|
118 |
-
|
119 |
-
A space by AP [Follow me on Twitter](https://twitter.com/angrypenguinPNG) with big contributions from [multimodalart](https://twitter.com/multimodalart)
|
120 |
-
This project works by using [Monster Labs QR Control Net](https://huggingface.co/monster-labs/control_v1p_sd15_qrcode_monster).
|
121 |
-
Given a prompt and your pattern, we use a QR code conditioned controlnet to create a stunning illusion! Credit to: [MrUgleh](https://twitter.com/MrUgleh) for discovering the workflow :)
|
122 |
-
'''
|
123 |
-
)
|
124 |
ac()
|
|
|
39 |
loading=("""
|
40 |
<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>""")
|
41 |
|
|
|
42 |
def ac():
|
43 |
def clear():
|
44 |
return gr.update(value=0),gr.update(value=0)
|
|
|
90 |
t_switch=gr.Textbox(value=0)
|
91 |
def clear_all():
|
92 |
return "",None,None,None,None,None,None,1,gr.HTML.update("<div></div>")
|
93 |
+
fac_b = gr.Textbox(value="", visible=False)
|
94 |
|
95 |
def noth():
|
96 |
return gr.HTML.update("<div></div>")
|
|
|
107 |
#btn2.click(noth,None,message,cancels=[b1,sta,b2,b3,b4,b5,swi],show_progress=False)
|
108 |
btn2.click(clear_all, None,[fac_b,put,out1,out2,out3,out4,t_state,t_switch,message],cancels=[b1,sta,b2,b3,b4,b5,swi],show_progress=False)
|
109 |
b.queue(concurrency_count=100).launch(show_api=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
ac()
|