tester343 commited on
Commit
633bd6f
·
verified ·
1 Parent(s): a2964b3

Update app_enhanced.py

Browse files
Files changed (1) hide show
  1. app_enhanced.py +8 -0
app_enhanced.py CHANGED
@@ -206,6 +206,10 @@ def generate_comic_gpu(video_path, user_dir, frames_dir, metadata_path, target_p
206
 
207
  @spaces.GPU
208
  def regen_frame_gpu(video_path, frames_dir, metadata_path, fname, direction):
 
 
 
 
209
  import cv2
210
  import json
211
  from backend.simple_color_enhancer import SimpleColorEnhancer
@@ -239,6 +243,10 @@ def regen_frame_gpu(video_path, frames_dir, metadata_path, fname, direction):
239
 
240
  @spaces.GPU
241
  def get_frame_at_ts_gpu(video_path, frames_dir, metadata_path, fname, ts):
 
 
 
 
242
  import cv2
243
  import json
244
  from backend.simple_color_enhancer import SimpleColorEnhancer
 
206
 
207
  @spaces.GPU
208
  def regen_frame_gpu(video_path, frames_dir, metadata_path, fname, direction):
209
+ """
210
+ Handles 'Next' and 'Previous' buttons.
211
+ Uses GPU for fast frame extraction and enhancement.
212
+ """
213
  import cv2
214
  import json
215
  from backend.simple_color_enhancer import SimpleColorEnhancer
 
243
 
244
  @spaces.GPU
245
  def get_frame_at_ts_gpu(video_path, frames_dir, metadata_path, fname, ts):
246
+ """
247
+ Handles 'Go to Timestamp' (manual entry).
248
+ Uses GPU for fast frame extraction and enhancement.
249
+ """
250
  import cv2
251
  import json
252
  from backend.simple_color_enhancer import SimpleColorEnhancer