Spaces:
Runtime error
Runtime error
enable to change prompt
Browse files
app.py
CHANGED
@@ -115,17 +115,12 @@ with gr.Blocks(css=css) as demo:
|
|
115 |
with gr.Column(elem_id="col-container"):
|
116 |
gr.Markdown("""# AIdeaLab VideoJP Demo
|
117 |
AIdeaLab VideoJPは、Rectified Flow Transformerで作られている軽量な動画生成モデルです ([詳細](https://note.com/aidealab/n/n677018ea1953)、[モデル](https://huggingface.co/aidealab/AIdeaLab-VideoJP))。十数秒で動画を作ることができます。なお、AIdeaLab VideoJPは経済産業省と国立研究開発法人新エネルギー・産業技術総合開発機構(NEDO)が実施する、国内の生成AIの開発力強化を目的としたプロジェクト「GENIAC(Generative AI Accelerator Challenge)」の成果をもとに作成されました。""")
|
118 |
-
#
|
119 |
-
|
120 |
-
"
|
121 |
-
"
|
122 |
-
|
123 |
-
|
124 |
-
"静かな森の中を、やわらかな朝陽が差し込む。木漏れ日に照らされた小川には小さな魚が泳ぎ、森の奥からは小鳥のさえずりが聞こえる。少し幻想的な雰囲気を持ちながらも穏やかな情景を映し出す動画。",
|
125 |
-
"The camera pans over a snow-covered mountain range, revealing a vast expanse of snow-capped peaks and valleys.The mountains are covered in a thick layer of snow, with some areas appearing almost white while others have a slightly darker, almost grayish hue. The peaks are jagged and irregular, with some rising sharply into the sky while others are more rounded. The valleys are deep and narrow, with steep slopes that are also covered in snow. The trees in the foreground are mostly bare, with only a few leaves remaining on their branches. The sky is overcast, with thick clouds obscuring the sun. The overall impression is one of peace and tranquility, with the snow-covered mountains standing as a testament to the power and beauty of nature.",
|
126 |
-
# "黒い短い髪を持った男性がカメラに向かって話している。背景には白い壁が見える。男性の顔ははっきりしていて、黒い目や口がくっきり見えている。",
|
127 |
-
]
|
128 |
-
text_input = gr.Dropdown(choices=sample_prompts, label="サンプルプロンプトを選んでください")
|
129 |
generate_button = gr.Button("生成")
|
130 |
|
131 |
output_video = gr.Video(label="生成された動画")
|
@@ -137,4 +132,4 @@ AIdeaLab VideoJPは、Rectified Flow Transformerで作られている軽量な
|
|
137 |
outputs=output_video
|
138 |
)
|
139 |
|
140 |
-
demo.launch()
|
|
|
115 |
with gr.Column(elem_id="col-container"):
|
116 |
gr.Markdown("""# AIdeaLab VideoJP Demo
|
117 |
AIdeaLab VideoJPは、Rectified Flow Transformerで作られている軽量な動画生成モデルです ([詳細](https://note.com/aidealab/n/n677018ea1953)、[モデル](https://huggingface.co/aidealab/AIdeaLab-VideoJP))。十数秒で動画を作ることができます。なお、AIdeaLab VideoJPは経済産業省と国立研究開発法人新エネルギー・産業技術総合開発機構(NEDO)が実施する、国内の生成AIの開発力強化を目的としたプロジェクト「GENIAC(Generative AI Accelerator Challenge)」の成果をもとに作成されました。""")
|
118 |
+
# テキストボックスで自由入力
|
119 |
+
text_input = gr.Textbox(
|
120 |
+
label="動画生成のプロンプトを入力してください",
|
121 |
+
placeholder="例: 静かな森の中を、やわらかな朝陽が差し込む。木漏れ日に照らされた小川には小さな魚が泳ぎ、森の奥からは小鳥のさえずりが聞こえる。",
|
122 |
+
lines=5
|
123 |
+
)
|
|
|
|
|
|
|
|
|
|
|
124 |
generate_button = gr.Button("生成")
|
125 |
|
126 |
output_video = gr.Video(label="生成された動画")
|
|
|
132 |
outputs=output_video
|
133 |
)
|
134 |
|
135 |
+
demo.launch()
|