owiedotch commited on
Commit
0ff04fc
1 Parent(s): ac0c0ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,9 +1,11 @@
1
  import gradio as gr
2
  import os
3
  import subprocess
 
4
  from typing import Tuple, List, Dict
5
  from pydub import AudioSegment
6
 
 
7
  def inference(audio_file: str, model_name: str, vocals: bool, drums: bool, bass: bool, other: bool, mp3: bool, mp3_bitrate: int) -> Tuple[str, gr.HTML]:
8
  log_messages = []
9
 
 
1
  import gradio as gr
2
  import os
3
  import subprocess
4
+ import spaces
5
  from typing import Tuple, List, Dict
6
  from pydub import AudioSegment
7
 
8
+ @spaces.GPU
9
  def inference(audio_file: str, model_name: str, vocals: bool, drums: bool, bass: bool, other: bool, mp3: bool, mp3_bitrate: int) -> Tuple[str, gr.HTML]:
10
  log_messages = []
11