wzy013 commited on
Commit
a511d7d
·
1 Parent(s): 21d1989

Fix Gradio compatibility issues

Browse files

- Remove unsupported 'info' parameter from gr.Video
- Remove unsupported 'size' parameter from gr.Button
- Ensure compatibility with Gradio 4.44.0

Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -190,8 +190,7 @@ def create_real_api_interface():
190
  gr.Markdown("### 📹 视频输入")
191
 
192
  video_input = gr.Video(
193
- label="上传视频",
194
- info="支持MP4、AVI、MOV等格式"
195
  )
196
 
197
  text_input = gr.Textbox(
@@ -228,8 +227,7 @@ def create_real_api_interface():
228
 
229
  generate_btn = gr.Button(
230
  "🎵 调用API生成音频",
231
- variant="primary",
232
- size="lg"
233
  )
234
 
235
  # 输出区域
 
190
  gr.Markdown("### 📹 视频输入")
191
 
192
  video_input = gr.Video(
193
+ label="上传视频 (支持MP4、AVI、MOV等格式)"
 
194
  )
195
 
196
  text_input = gr.Textbox(
 
227
 
228
  generate_btn = gr.Button(
229
  "🎵 调用API生成音频",
230
+ variant="primary"
 
231
  )
232
 
233
  # 输出区域