Spaces:
Running
on
T4
Running
on
T4
PKUWilliamYang
commited on
Commit
·
639ff14
1
Parent(s):
dbf6cac
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def set_example_image(example: list) -> dict:
|
|
73 |
def set_example_video(example: list) -> dict:
|
74 |
return gr.Video.update(value=example[0]),
|
75 |
|
76 |
-
sample_video = ['./vtoonify/data/529.mp4'
|
77 |
sample_vid = gr.Video(label='Video file') #for displaying the example
|
78 |
example_videos = gr.components.Dataset(components=[sample_vid], samples=[[path] for path in sample_video], type='values', label='Video Examples')
|
79 |
|
@@ -185,7 +185,7 @@ def main():
|
|
185 |
interactive=False)
|
186 |
with gr.Row():
|
187 |
with gr.Column():
|
188 |
-
paths = ['./vtoonify/data/
|
189 |
example_images = gr.Dataset(components=[input_image],
|
190 |
samples=[[path] for path in paths],
|
191 |
label='Image Examples')
|
|
|
73 |
def set_example_video(example: list) -> dict:
|
74 |
return gr.Video.update(value=example[0]),
|
75 |
|
76 |
+
sample_video = ['./vtoonify/data/529.mp4']
|
77 |
sample_vid = gr.Video(label='Video file') #for displaying the example
|
78 |
example_videos = gr.components.Dataset(components=[sample_vid], samples=[[path] for path in sample_video], type='values', label='Video Examples')
|
79 |
|
|
|
185 |
interactive=False)
|
186 |
with gr.Row():
|
187 |
with gr.Column():
|
188 |
+
paths = ['./vtoonify/data/pexels-andrea-piacquadio-733872.jpg','./vtoonify/data/077436.jpg']
|
189 |
example_images = gr.Dataset(components=[input_image],
|
190 |
samples=[[path] for path in paths],
|
191 |
label='Image Examples')
|