YaohuiW commited on
Commit
c1a5130
·
verified ·
1 Parent(s): 2993657

Update gradio_tabs/animation.py

Browse files
Files changed (1) hide show
  1. gradio_tabs/animation.py +3 -3
gradio_tabs/animation.py CHANGED
@@ -124,7 +124,7 @@ def vid_postprocessing(video, fps, output_path=output_dir + "/output_vid.mp4"):
124
 
125
  return output_path
126
 
127
-
128
  def edit_media(image, *selected_s):
129
 
130
  image_tensor = img_preprocessing(image, 512)
@@ -137,7 +137,7 @@ def edit_media(image, *selected_s):
137
 
138
  return edited_image
139
 
140
-
141
  def animate_media(image, video, *selected_s):
142
 
143
  image_tensor = img_preprocessing(image, 512)
@@ -161,7 +161,7 @@ def clear_media():
161
  # video_output = gr.Video(label="Output Video", elem_id="output_vid", width=512)
162
 
163
 
164
- @torch.no_grad()
165
  def animation():
166
 
167
  with gr.Tab("Animation & Image Editing"):
 
124
 
125
  return output_path
126
 
127
+ @torch.no_grad()
128
  def edit_media(image, *selected_s):
129
 
130
  image_tensor = img_preprocessing(image, 512)
 
137
 
138
  return edited_image
139
 
140
+ @torch.no_grad()
141
  def animate_media(image, video, *selected_s):
142
 
143
  image_tensor = img_preprocessing(image, 512)
 
161
  # video_output = gr.Video(label="Output Video", elem_id="output_vid", width=512)
162
 
163
 
164
+
165
  def animation():
166
 
167
  with gr.Tab("Animation & Image Editing"):