Spaces:
Running
on
Zero
Running
on
Zero
Serhiy Stetskovych
commited on
Commit
·
72b5eb1
1
Parent(s):
98a6a49
Add spaces import
Browse files
app.py
CHANGED
@@ -4,9 +4,11 @@ import gradio as gr
|
|
4 |
import yaml
|
5 |
import librosa
|
6 |
import tqdm
|
|
|
7 |
|
8 |
import look2hear.models
|
9 |
from ml_collections import ConfigDict
|
|
|
10 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
11 |
|
12 |
def load_audio(file_path):
|
|
|
4 |
import yaml
|
5 |
import librosa
|
6 |
import tqdm
|
7 |
+
import spaces
|
8 |
|
9 |
import look2hear.models
|
10 |
from ml_collections import ConfigDict
|
11 |
+
|
12 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
13 |
|
14 |
def load_audio(file_path):
|