Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ Author: Csaba (BladeSzaSza)
|
|
5 |
"""
|
6 |
import gradio as gr
|
7 |
import os
|
|
|
8 |
from pathlib import Path
|
9 |
# from backend.gradio_labanmovementanalysis import LabanMovementAnalysis
|
10 |
from src.backend.gradio_labanmovementanalysis import LabanMovementAnalysis
|
@@ -36,7 +37,7 @@ except Exception as e:
|
|
36 |
print(f"Warning: Some features may not be available: {e}")
|
37 |
analyzer = LabanMovementAnalysis()
|
38 |
|
39 |
-
|
40 |
def process_video_enhanced(video_input, model, enable_viz, include_keypoints):
|
41 |
"""Enhanced video processing with all new features."""
|
42 |
if not video_input:
|
|
|
5 |
"""
|
6 |
import gradio as gr
|
7 |
import os
|
8 |
+
from spaces import GPU
|
9 |
from pathlib import Path
|
10 |
# from backend.gradio_labanmovementanalysis import LabanMovementAnalysis
|
11 |
from src.backend.gradio_labanmovementanalysis import LabanMovementAnalysis
|
|
|
37 |
print(f"Warning: Some features may not be available: {e}")
|
38 |
analyzer = LabanMovementAnalysis()
|
39 |
|
40 |
+
@GPU
|
41 |
def process_video_enhanced(video_input, model, enable_viz, include_keypoints):
|
42 |
"""Enhanced video processing with all new features."""
|
43 |
if not video_input:
|