Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,7 @@ from utils.mert import FeatureExtractorMERT
|
|
39 |
from model.linear_mt_attn_ck import FeedforwardModelMTAttnCK
|
40 |
|
41 |
import matplotlib.pyplot as plt
|
|
|
42 |
|
43 |
|
44 |
# Suppress unnecessary warnings and logs
|
@@ -776,6 +777,7 @@ css = """
|
|
776 |
}
|
777 |
"""
|
778 |
|
|
|
779 |
def analyze_emotions(audio_path, threshold):
|
780 |
if audio_path is None:
|
781 |
return "❌ Please upload a valid audio file.", None, None
|
|
|
39 |
from model.linear_mt_attn_ck import FeedforwardModelMTAttnCK
|
40 |
|
41 |
import matplotlib.pyplot as plt
|
42 |
+
import spaces
|
43 |
|
44 |
|
45 |
# Suppress unnecessary warnings and logs
|
|
|
777 |
}
|
778 |
"""
|
779 |
|
780 |
+
@spaces.GPU(duration=120)
|
781 |
def analyze_emotions(audio_path, threshold):
|
782 |
if audio_path is None:
|
783 |
return "❌ Please upload a valid audio file.", None, None
|