fffiloni commited on
Commit
ca3f3ab
1 Parent(s): 12a6eb9

add examples

Browse files
Files changed (1) hide show
  1. app_hf.py +12 -2
app_hf.py CHANGED
@@ -87,8 +87,18 @@ with gr.Blocks(title="AniPortrait") as blocks_app:
87
  gr.Markdown("Original Project: https://github.com/Zejun-Yang/AniPortrait")
88
 
89
  with gr.Row():
90
- image_input = gr.Image(type="filepath", label="Upload Image")
91
- video_input = gr.Video(label="Upload Video")
 
 
 
 
 
 
 
 
 
 
92
 
93
  with gr.Row():
94
  width = gr.Slider(minimum=256, maximum=1024, step=8, value=512, label="Width (-W)")
 
87
  gr.Markdown("Original Project: https://github.com/Zejun-Yang/AniPortrait")
88
 
89
  with gr.Row():
90
+ with gr.Column():
91
+ image_input = gr.Image(type="filepath", label="Upload Image")
92
+ gr.Examples(
93
+ examples = ["examples/aniportrait_man.jpg", "examples/aniportrait_woman.jpg"],
94
+ inputs = [image_input]
95
+ )
96
+ with gr.Column():
97
+ video_input = gr.Video(label="Upload Video")
98
+ gr.Examples(
99
+ examples = ["examples/aniportrait_rap.mov", "examples/aniportrait_song.mov"],
100
+ inputs = [video_input]
101
+ )
102
 
103
  with gr.Row():
104
  width = gr.Slider(minimum=256, maximum=1024, step=8, value=512, label="Width (-W)")