kjysmu commited on
Commit
b95fb02
·
verified ·
1 Parent(s): a3d9a87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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