Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import re
|
| 2 |
-
|
| 3 |
-
import torchaudio
|
| 4 |
import gradio as gr
|
| 5 |
import numpy as np
|
| 6 |
import tempfile
|
|
@@ -37,7 +36,8 @@ def gpu_decorator(func):
|
|
| 37 |
return spaces.GPU(func)
|
| 38 |
else:
|
| 39 |
return func
|
| 40 |
-
|
|
|
|
| 41 |
# Determine the device
|
| 42 |
device = (
|
| 43 |
"cuda"
|
|
|
|
| 1 |
import re
|
| 2 |
+
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import numpy as np
|
| 5 |
import tempfile
|
|
|
|
| 36 |
return spaces.GPU(func)
|
| 37 |
else:
|
| 38 |
return func
|
| 39 |
+
import torch
|
| 40 |
+
import torchaudio
|
| 41 |
# Determine the device
|
| 42 |
device = (
|
| 43 |
"cuda"
|