Skip to content

Commit

Permalink
Update app.py dropbox item
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanchao019 authored Mar 27, 2024
1 parent c3e13ab commit 7348e03
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/gradio/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ def update_shape(image):
btn1 = gr.Button("Run")
out = gr.outputs.Video()
# pdb.set_trace()
with gr.Row():
board = gr.Dataframe(value=[["", "", ""]] * 3, interactive=False, type="array",label='Demo Video')

image.change(fn=update_shape,inputs=[image],outputs=[w,h])

Expand All @@ -45,7 +43,7 @@ def update_shape(image):
prompt=gr.Textbox(label='Prompt')
image=gr.Image(label="Input Image")
video=gr.Video(label="Input Video")
processor=gr.Dropdown(label="Condition Processor",choices=["Tile","Depth","Canny","Pose"],value="Pose")
processor=gr.Dropdown(label="Condition Processor",choices=['pose', 'pose_body', 'pose_hand', 'pose_face', 'pose_hand_body', 'pose_hand_face', 'dwpose', 'dwpose_face', 'dwpose_hand', 'dwpose_body', 'dwpose_body_hand', 'canny', 'tile', 'hed', 'hed_scribble', 'depth', 'pidi', 'normal_bae', 'lineart', 'lineart_anime', 'zoe', 'sam', 'mobile_sam', 'leres', 'content', 'face_detector'],value="Pose")
seed=gr.Number(label='Seed')
fps=gr.Number(label='Generate Video FPS')
gr.Markdown("If W&H is None, then use the Reference Image's Size")
Expand All @@ -64,4 +62,4 @@ def update_shape(image):
port_number = 12345 # Replace with your desired port number


demo.queue().launch(share=False, debug=True, server_name=ip_address, server_port=port_number)
demo.queue().launch(share=False, debug=True, server_name=ip_address, server_port=port_number)

0 comments on commit 7348e03

Please sign in to comment.