Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -446,37 +446,37 @@ def main():
|
|
446 |
choices=["Text2Video", "Image2Video"],
|
447 |
value="Text2Video",
|
448 |
label="Usage",
|
449 |
-
info="
|
450 |
)
|
451 |
prompt_text = gr.Textbox(
|
452 |
-
label="
|
453 |
-
placeholder="
|
454 |
lines=4,
|
455 |
)
|
456 |
resolution = gr.Radio(
|
457 |
choices=["144p", "240p", "360p", "480p", "720p", "1080p"],
|
458 |
value="144p",
|
459 |
-
label="
|
460 |
)
|
461 |
length = gr.Radio(
|
462 |
choices=["2s", "4s", "8s"],
|
463 |
value="2s",
|
464 |
-
label="
|
465 |
-
info="
|
466 |
)
|
467 |
|
468 |
reference_image = gr.Image(
|
469 |
-
label="
|
470 |
)
|
471 |
|
472 |
with gr.Column():
|
473 |
output_video = gr.Video(
|
474 |
-
label="
|
475 |
height="100%"
|
476 |
)
|
477 |
|
478 |
with gr.Row():
|
479 |
-
submit_button = gr.Button("
|
480 |
|
481 |
|
482 |
submit_button.click(
|
|
|
446 |
choices=["Text2Video", "Image2Video"],
|
447 |
value="Text2Video",
|
448 |
label="Usage",
|
449 |
+
info="使用シナリオを選択してください",
|
450 |
)
|
451 |
prompt_text = gr.Textbox(
|
452 |
+
label="プロンプト",
|
453 |
+
placeholder="ここでビデオについて説明してください",
|
454 |
lines=4,
|
455 |
)
|
456 |
resolution = gr.Radio(
|
457 |
choices=["144p", "240p", "360p", "480p", "720p", "1080p"],
|
458 |
value="144p",
|
459 |
+
label="解像度",
|
460 |
)
|
461 |
length = gr.Radio(
|
462 |
choices=["2s", "4s", "8s"],
|
463 |
value="2s",
|
464 |
+
label="ビデオの長さ",
|
465 |
+
info="Hugging Face ZeroGPU には最大 200 秒の推論時間制限があるため、8 秒では失敗する可能性があります。"
|
466 |
)
|
467 |
|
468 |
reference_image = gr.Image(
|
469 |
+
label="参照画像 (Image2Video のみに使用)",
|
470 |
)
|
471 |
|
472 |
with gr.Column():
|
473 |
output_video = gr.Video(
|
474 |
+
label="ビデオのアウトプット",
|
475 |
height="100%"
|
476 |
)
|
477 |
|
478 |
with gr.Row():
|
479 |
+
submit_button = gr.Button("ビデオを生成")
|
480 |
|
481 |
|
482 |
submit_button.click(
|