Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -677,9 +677,9 @@ with gr.Blocks(title="Diffusion as Shader") as demo:
|
|
| 677 |
|
| 678 |
with left_column:
|
| 679 |
source_upload = gr.UploadButton("1. Upload Source", file_types=["image", "video"])
|
| 680 |
-
source_preview = gr.Video(label="Source Preview")
|
| 681 |
gr.Markdown("Upload a video or image, We will extract the motion and space structure from it")
|
| 682 |
-
|
|
|
|
| 683 |
# 上传文件后更新预览
|
| 684 |
def update_source_preview(file):
|
| 685 |
if file is None:
|
|
@@ -692,9 +692,9 @@ with gr.Blocks(title="Diffusion as Shader") as demo:
|
|
| 692 |
inputs=[source_upload],
|
| 693 |
outputs=[source_preview]
|
| 694 |
)
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
gr.
|
| 698 |
|
| 699 |
with gr.Tabs() as task_tabs:
|
| 700 |
# Motion Transfer tab
|
|
@@ -736,6 +736,12 @@ with gr.Blocks(title="Diffusion as Shader") as demo:
|
|
| 736 |
inputs=[tracking_video],
|
| 737 |
outputs=[apply_tracking_btn]
|
| 738 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 739 |
|
| 740 |
# # Camera Control tab
|
| 741 |
# with gr.TabItem("Camera Control"):
|
|
|
|
| 677 |
|
| 678 |
with left_column:
|
| 679 |
source_upload = gr.UploadButton("1. Upload Source", file_types=["image", "video"])
|
|
|
|
| 680 |
gr.Markdown("Upload a video or image, We will extract the motion and space structure from it")
|
| 681 |
+
source_preview = gr.Video(label="Source Preview")
|
| 682 |
+
|
| 683 |
# 上传文件后更新预览
|
| 684 |
def update_source_preview(file):
|
| 685 |
if file is None:
|
|
|
|
| 692 |
inputs=[source_upload],
|
| 693 |
outputs=[source_preview]
|
| 694 |
)
|
| 695 |
+
|
| 696 |
+
gr.Markdown("2. Describe the scene and the motion you want to create")
|
| 697 |
+
common_prompt = gr.Textbox(label="Prompt: ", lines=2)
|
| 698 |
|
| 699 |
with gr.Tabs() as task_tabs:
|
| 700 |
# Motion Transfer tab
|
|
|
|
| 736 |
inputs=[tracking_video],
|
| 737 |
outputs=[apply_tracking_btn]
|
| 738 |
)
|
| 739 |
+
|
| 740 |
+
with gr.TabItem("Camera Control"):
|
| 741 |
+
gr.Markdown("Camera Control is not available in Huggingface Space, please deploy our GitHub project on your own machine")
|
| 742 |
+
|
| 743 |
+
with gr.TabItem("Object Manipulation"):
|
| 744 |
+
gr.Markdown("Object Manipulation is not available in Huggingface Space, please deploy our GitHub project on your own machine")
|
| 745 |
|
| 746 |
# # Camera Control tab
|
| 747 |
# with gr.TabItem("Camera Control"):
|