Spaces:
Running
on
Zero
Running
on
Zero
modify html
Browse files
app.py
CHANGED
@@ -205,26 +205,26 @@ if __name__ == "__main__":
|
|
205 |
</p>
|
206 |
"""
|
207 |
)
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
with gr.Column():
|
218 |
|
219 |
-
|
220 |
-
|
|
|
|
|
221 |
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
|
227 |
-
|
228 |
|
229 |
checkpoint_dropdown.change(fn=update_preview_video, inputs=checkpoint_dropdown, outputs=preview_video)
|
230 |
inference_button.click(inference_model, inputs=[text_input, checkpoint_dropdown,inference_steps,motion_type, seed], outputs=output_video)
|
|
|
205 |
</p>
|
206 |
"""
|
207 |
)
|
208 |
+
with gr.Tabs(elem_classes=["tabs"]):
|
209 |
+
with gr.Row():
|
210 |
+
with gr.Column():
|
211 |
+
preview_video = gr.Video(label="Preview Video")
|
212 |
+
text_input = gr.Textbox(label="Input Text")
|
213 |
+
checkpoint_dropdown = gr.Dropdown(label="Select Checkpoint", choices=get_checkpoints('results'))
|
214 |
+
seed = gr.Number(label="Seed", value=0)
|
215 |
+
inference_button = gr.Button("Generate Video")
|
|
|
|
|
216 |
|
217 |
+
with gr.Column():
|
218 |
+
|
219 |
+
output_video = gr.Video(label="Output Video")
|
220 |
+
generated_prompt = gr.Textbox(label="Generated Prompt")
|
221 |
|
222 |
+
with gr.Accordion("Advanced Settings", open=False):
|
223 |
+
with gr.Row():
|
224 |
+
inference_steps = gr.Number(label="Inference Steps", value=30)
|
225 |
+
motion_type = gr.Dropdown(label="Motion Type", choices=["camera", "object"], value="object")
|
226 |
|
227 |
+
gr.Examples(examples=examples_inference,inputs=[preview_video,text_input,motion_type,checkpoint_dropdown])
|
228 |
|
229 |
checkpoint_dropdown.change(fn=update_preview_video, inputs=checkpoint_dropdown, outputs=preview_video)
|
230 |
inference_button.click(inference_model, inputs=[text_input, checkpoint_dropdown,inference_steps,motion_type, seed], outputs=output_video)
|