arxivgpt kim commited on
Commit
3ae3356
1 Parent(s): 81889d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -138,17 +138,19 @@ footer {
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],
151
- outputs=[audio_o]
152
- )
 
153
 
154
  demo.queue(max_size=10).launch(debug=True)
 
138
 
139
  with gr.Blocks(css=css) as demo:
140
  with gr.Column():
141
+ # 'value' 매개변수를 제거함
142
+ image_in = gr.Image(sources=["upload"], type="filepath", label="Image input")
143
  with gr.Row():
144
  chosen_model = gr.Radio(label="Choose a model", choices=["MAGNet", "AudioLDM-2", "AudioGen"], value="AudioLDM-2")
145
  submit_btn = gr.Button("Submit")
146
  with gr.Column():
147
  audio_o = gr.Audio(label="Audio output")
148
 
149
+ submit_btn.click(
150
+ fn=infer,
151
+ inputs=[image_in, chosen_model],
152
+ outputs=[audio_o]
153
+ )
154
+
155
 
156
  demo.queue(max_size=10).launch(debug=True)