Update app_enhanced.py
Browse files- app_enhanced.py +0 -8
app_enhanced.py
CHANGED
|
@@ -206,10 +206,6 @@ 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 |
-
"""
|
| 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,10 +239,6 @@ def regen_frame_gpu(video_path, frames_dir, metadata_path, fname, direction):
|
|
| 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
|
|
|
|
| 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 |
|
| 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
|