Spaces:
Runtime error
Runtime error
saimemrekanat
commited on
Commit
•
744cc3b
1
Parent(s):
d104d1f
api test
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def main():
|
|
89 |
print('*** Now using %s.'%(args.device))
|
90 |
model = Model(device=args.device)
|
91 |
|
92 |
-
with gr.Blocks(theme=args.theme, css='style.css'
|
93 |
|
94 |
gr.Markdown(DESCRIPTION)
|
95 |
|
@@ -272,8 +272,7 @@ def main():
|
|
272 |
outputs=[result_face, output_info])
|
273 |
vtoonify_button.click(fn=model.video_tooniy,
|
274 |
inputs=[aligned_video, instyle, exstyle, style_degree, style_type],
|
275 |
-
outputs=[result_video, output_info])
|
276 |
-
|
277 |
|
278 |
example_images.click(fn=set_example_image,
|
279 |
inputs=example_images,
|
|
|
89 |
print('*** Now using %s.'%(args.device))
|
90 |
model = Model(device=args.device)
|
91 |
|
92 |
+
with gr.Blocks(theme=args.theme, css='style.css') as demo:
|
93 |
|
94 |
gr.Markdown(DESCRIPTION)
|
95 |
|
|
|
272 |
outputs=[result_face, output_info])
|
273 |
vtoonify_button.click(fn=model.video_tooniy,
|
274 |
inputs=[aligned_video, instyle, exstyle, style_degree, style_type],
|
275 |
+
outputs=[result_video, output_info], api_name="video")
|
|
|
276 |
|
277 |
example_images.click(fn=set_example_image,
|
278 |
inputs=example_images,
|