visualizingjp commited on
Commit
c43ea5f
1 Parent(s): 6099edb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -446,37 +446,37 @@ def main():
446
  choices=["Text2Video", "Image2Video"],
447
  value="Text2Video",
448
  label="Usage",
449
- info="Choose your usage scenario",
450
  )
451
  prompt_text = gr.Textbox(
452
- label="Prompt",
453
- placeholder="Describe your video here",
454
  lines=4,
455
  )
456
  resolution = gr.Radio(
457
  choices=["144p", "240p", "360p", "480p", "720p", "1080p"],
458
  value="144p",
459
- label="Resolution",
460
  )
461
  length = gr.Radio(
462
  choices=["2s", "4s", "8s"],
463
  value="2s",
464
- label="Video Length",
465
- info="8s may fail as Hugging Face ZeroGPU has the limitation of max 200 seconds inference time."
466
  )
467
 
468
  reference_image = gr.Image(
469
- label="Reference Image (only used for Image2Video)",
470
  )
471
 
472
  with gr.Column():
473
  output_video = gr.Video(
474
- label="Output Video",
475
  height="100%"
476
  )
477
 
478
  with gr.Row():
479
- submit_button = gr.Button("Generate video")
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(