Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,23 +39,6 @@ m_out = ("""
|
|
39 |
loading=("""
|
40 |
<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>""")
|
41 |
|
42 |
-
css="""
|
43 |
-
#col-container{
|
44 |
-
margin: 0 auto;
|
45 |
-
max-width: 800px;
|
46 |
-
}
|
47 |
-
"""
|
48 |
-
|
49 |
-
with gr.Blocks(css=css) as demo:
|
50 |
-
with gr.Column(elem_id="col-container"):
|
51 |
-
gr.HTML("""
|
52 |
-
<h2 style="text-align: center;">
|
53 |
-
Image to SFX
|
54 |
-
</h2>
|
55 |
-
<p style="text-align: center;">
|
56 |
-
Compare MAGNet, AudioLDM2 and AudioGen sound effects generation from image caption.
|
57 |
-
</p>
|
58 |
-
""")
|
59 |
|
60 |
def ac():
|
61 |
def clear():
|
@@ -125,4 +108,22 @@ def ac():
|
|
125 |
#btn2.click(noth,None,message,cancels=[b1,sta,b2,b3,b4,b5,swi],show_progress=False)
|
126 |
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)
|
127 |
b.queue(concurrency_count=100).launch(show_api=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
ac()
|
|
|
39 |
loading=("""
|
40 |
<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>""")
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
def ac():
|
44 |
def clear():
|
|
|
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 |
+
css="""
|
113 |
+
#col-container{
|
114 |
+
margin: 0 auto;
|
115 |
+
max-width: 800px;
|
116 |
+
}
|
117 |
+
"""
|
118 |
+
|
119 |
+
with gr.Blocks(css=css) as demo:
|
120 |
+
with gr.Column(elem_id="col-container"):
|
121 |
+
gr.HTML("""
|
122 |
+
<h2 style="text-align: center;">
|
123 |
+
Image to SFX
|
124 |
+
</h2>
|
125 |
+
<p style="text-align: center;">
|
126 |
+
Compare MAGNet, AudioLDM2 and AudioGen sound effects generation from image caption.
|
127 |
+
</p>
|
128 |
+
""")
|
129 |
ac()
|