arxivgpt kim
commited on
Commit
•
81889d7
1
Parent(s):
11536a6
Update app.py
Browse files
app.py
CHANGED
@@ -135,16 +135,16 @@ footer {
|
|
135 |
}
|
136 |
"""
|
137 |
|
|
|
138 |
with gr.Blocks(css=css) as demo:
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
submit_btn.click(
|
149 |
fn=infer,
|
150 |
inputs=[image_in, chosen_model],
|
|
|
135 |
}
|
136 |
"""
|
137 |
|
138 |
+
|
139 |
with gr.Blocks(css=css) as demo:
|
140 |
+
with gr.Column():
|
141 |
+
image_in = gr.Image(sources=["upload"], type="filepath", label="Image input", value="oiseau.png")
|
142 |
+
with gr.Row():
|
143 |
+
chosen_model = gr.Radio(label="Choose a model", choices=["MAGNet", "AudioLDM-2", "AudioGen"], value="AudioLDM-2")
|
144 |
+
submit_btn = gr.Button("Submit")
|
145 |
+
with gr.Column():
|
146 |
+
audio_o = gr.Audio(label="Audio output")
|
147 |
+
|
|
|
148 |
submit_btn.click(
|
149 |
fn=infer,
|
150 |
inputs=[image_in, chosen_model],
|