Skip to content

Commit 3929960

Browse files
committed
Fix gradio compat error
1 parent 2ef6ee1 commit 3929960

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ def update_ui_language(lang):
277277
gr.update(label=t["ai_audio"]), # AI audio checkbox
278278
gr.update(label=t["resolution"]), # Resolution dropdown for Zhipu
279279
gr.update(label=t["fps"]), # FPS dropdown
280-
gr.update(label=t["generate"]), # Generate button
281-
gr.update(label=t["clear"]), # Clear button
280+
gr.update(text=t["generate"]), # Generate button
281+
gr.update(text=t["clear"]), # Clear button
282282
gr.update(label=t["result"]), # Video output
283283
gr.update(label=t["status"]) # Status output
284284
)
@@ -381,8 +381,8 @@ def update_ui_language(lang):
381381
)
382382

383383
with gr.Row():
384-
submit_btn = gr.Button(TRANSLATIONS[default_lang]["generate"])
385-
clear_btn = gr.Button(TRANSLATIONS[default_lang]["clear"])
384+
submit_btn = gr.Button(text=TRANSLATIONS[default_lang]["generate"])
385+
clear_btn = gr.Button(text=TRANSLATIONS[default_lang]["clear"])
386386

387387
with gr.Column(scale=1):
388388
video_output = gr.Video(label=TRANSLATIONS[default_lang]["result"])

0 commit comments

Comments
 (0)