Spaces:
Running
on
Zero
Running
on
Zero
Update gradio_tabs/animation.py
Browse files- gradio_tabs/animation.py +7 -4
gradio_tabs/animation.py
CHANGED
|
@@ -157,8 +157,8 @@ def clear_media():
|
|
| 157 |
return None, None, *([0] * len(labels_k))
|
| 158 |
|
| 159 |
|
| 160 |
-
image_output = gr.Image(label="Output Image", elem_id="output_img", type='numpy', interactive=False, width=512)
|
| 161 |
-
video_output = gr.Video(label="Output Video", elem_id="output_vid", width=512)
|
| 162 |
|
| 163 |
|
| 164 |
@torch.no_grad()
|
|
@@ -218,10 +218,13 @@ def animation():
|
|
| 218 |
|
| 219 |
with gr.Row():
|
| 220 |
with gr.Accordion(open=True, label="Edited Source Image"):
|
| 221 |
-
image_output.render()
|
|
|
|
|
|
|
| 222 |
|
| 223 |
with gr.Accordion(open=True, label="Animated Video"):
|
| 224 |
-
video_output.render()
|
|
|
|
| 225 |
|
| 226 |
with gr.Accordion("Control Panel", open=True):
|
| 227 |
with gr.Tab("Head"):
|
|
|
|
| 157 |
return None, None, *([0] * len(labels_k))
|
| 158 |
|
| 159 |
|
| 160 |
+
# image_output = gr.Image(label="Output Image", elem_id="output_img", type='numpy', interactive=False, width=512)
|
| 161 |
+
# video_output = gr.Video(label="Output Video", elem_id="output_vid", width=512)
|
| 162 |
|
| 163 |
|
| 164 |
@torch.no_grad()
|
|
|
|
| 218 |
|
| 219 |
with gr.Row():
|
| 220 |
with gr.Accordion(open=True, label="Edited Source Image"):
|
| 221 |
+
#image_output.render()
|
| 222 |
+
image_output = gr.Image(label="Output Image", elem_id="output_img", type='numpy', interactive=False, width=512)#.render()
|
| 223 |
+
|
| 224 |
|
| 225 |
with gr.Accordion(open=True, label="Animated Video"):
|
| 226 |
+
#video_output.render()
|
| 227 |
+
video_output = gr.Video(label="Output Video", elem_id="output_vid", width=512)#.render()
|
| 228 |
|
| 229 |
with gr.Accordion("Control Panel", open=True):
|
| 230 |
with gr.Tab("Head"):
|