mrfakename commited on
Commit
eb857a3
·
verified ·
1 Parent(s): 31096c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,11 +1,11 @@
1
- # !pip install flowhigh torchaudio gradio
2
-
3
  import gradio as gr
4
  import torchaudio as ta
5
  from flowhigh import FlowHighSR
6
 
7
  model = FlowHighSR.from_pretrained(device="cuda")
8
 
 
9
  def process(audio, target_sr):
10
  wav, sr_in = ta.load(audio)
11
  # Convert stereo to mono if needed
 
1
+ import spaces
 
2
  import gradio as gr
3
  import torchaudio as ta
4
  from flowhigh import FlowHighSR
5
 
6
  model = FlowHighSR.from_pretrained(device="cuda")
7
 
8
+ @spaces.GPU
9
  def process(audio, target_sr):
10
  wav, sr_in = ta.load(audio)
11
  # Convert stereo to mono if needed