karlhajal commited on
Commit
6d5e97d
·
verified ·
1 Parent(s): 411b612

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -2,11 +2,13 @@
2
  # SPDX-FileContributor: Karl El Hajal
3
  # SPDX-FileContributor: Ali Dulaimi
4
 
 
5
  import gradio as gr
6
  import tempfile
7
  import matplotlib.pyplot as plt
8
  from src.pronunciation_checker import PronunciationChecker
9
 
 
10
  def check_pronunciation(reference_audio, input_audio):
11
  pronunciation_checker = PronunciationChecker("microsoft/wavlm-large")
12
 
 
2
  # SPDX-FileContributor: Karl El Hajal
3
  # SPDX-FileContributor: Ali Dulaimi
4
 
5
+ import spaces
6
  import gradio as gr
7
  import tempfile
8
  import matplotlib.pyplot as plt
9
  from src.pronunciation_checker import PronunciationChecker
10
 
11
+ @spaces.GPU
12
  def check_pronunciation(reference_audio, input_audio):
13
  pronunciation_checker = PronunciationChecker("microsoft/wavlm-large")
14