Spaces:
Sleeping
Sleeping
Changes to be committed:
Browse files
app.py
CHANGED
|
@@ -38,13 +38,14 @@ def personalized_video(prompt, image, request: gr.Request):
|
|
| 38 |
|
| 39 |
with gr.Blocks() as demo:
|
| 40 |
gr.Markdown("## Personalized Video Generator")
|
| 41 |
-
with gr.
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
|
|
| 48 |
submit_button.click(personalized_video, [prompt, input_image], [edited_image, output_video])
|
| 49 |
prompt.submit(personalized_video, [prompt, input_image], [edited_image, output_video])
|
| 50 |
|
|
|
|
| 38 |
|
| 39 |
with gr.Blocks() as demo:
|
| 40 |
gr.Markdown("## Personalized Video Generator")
|
| 41 |
+
with gr.Row():
|
| 42 |
+
with gr.Column():
|
| 43 |
+
input_image = gr.Image(label="Input Image", type="filepath")
|
| 44 |
+
prompt = gr.Textbox(label="Prompt")
|
| 45 |
+
submit_button = gr.Button(label="Submit")
|
| 46 |
+
with gr.Column():
|
| 47 |
+
edited_image = gr.Image(label="Edited Image")
|
| 48 |
+
output_video = gr.Video(label="Output Video")
|
| 49 |
submit_button.click(personalized_video, [prompt, input_image], [edited_image, output_video])
|
| 50 |
prompt.submit(personalized_video, [prompt, input_image], [edited_image, output_video])
|
| 51 |
|