Spaces:
Running
Running
Fix tempfile import
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import spaces
|
|
| 4 |
from typing import List
|
| 5 |
import soundfile as sf
|
| 6 |
import gradio as gr
|
| 7 |
-
|
| 8 |
|
| 9 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 10 |
knn_vc = torch.hub.load('bshall/knn-vc', 'knn_vc', prematched=True, trust_repo=True, pretrained=True, device=device)
|
|
|
|
| 4 |
from typing import List
|
| 5 |
import soundfile as sf
|
| 6 |
import gradio as gr
|
| 7 |
+
import tempfile
|
| 8 |
|
| 9 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 10 |
knn_vc = torch.hub.load('bshall/knn-vc', 'knn_vc', prematched=True, trust_repo=True, pretrained=True, device=device)
|