arxivgpt kim
commited on
Commit
•
11536a6
1
Parent(s):
88043ce
Update app.py
Browse files
app.py
CHANGED
@@ -129,24 +129,14 @@ def infer(image_in, chosen_model):
|
|
129 |
audiogen_result = get_audiogen(caption)
|
130 |
return audiogen_result
|
131 |
|
132 |
-
css="""
|
133 |
-
|
134 |
-
|
135 |
-
max-width: 800px;
|
136 |
}
|
137 |
"""
|
138 |
|
139 |
with gr.Blocks(css=css) as demo:
|
140 |
-
|
141 |
-
gr.HTML("""
|
142 |
-
<h2 style="text-align: center;">
|
143 |
-
Image to SFX
|
144 |
-
</h2>
|
145 |
-
<p style="text-align: center;">
|
146 |
-
Compare MAGNet, AudioLDM2 and AudioGen sound effects generation from image caption.
|
147 |
-
</p>
|
148 |
-
""")
|
149 |
-
|
150 |
with gr.Column():
|
151 |
image_in = gr.Image(sources=["upload"], type="filepath", label="Image input", value="oiseau.png")
|
152 |
with gr.Row():
|
|
|
129 |
audiogen_result = get_audiogen(caption)
|
130 |
return audiogen_result
|
131 |
|
132 |
+
css = """
|
133 |
+
footer {
|
134 |
+
visibility: hidden;
|
|
|
135 |
}
|
136 |
"""
|
137 |
|
138 |
with gr.Blocks(css=css) as demo:
|
139 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
with gr.Column():
|
141 |
image_in = gr.Image(sources=["upload"], type="filepath", label="Image input", value="oiseau.png")
|
142 |
with gr.Row():
|