Spaces:
Sleeping
Sleeping
Fix import error
Browse files
app.py
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import random
|
| 2 |
import numpy as np
|
| 3 |
import torch
|
| 4 |
import gradio as gr
|
| 5 |
-
from
|
| 6 |
|
| 7 |
|
| 8 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
import os
|
| 3 |
+
sys.path.append(os.path.join(os.path.dirname(__file__), "src"))
|
| 4 |
+
|
| 5 |
import random
|
| 6 |
import numpy as np
|
| 7 |
import torch
|
| 8 |
import gradio as gr
|
| 9 |
+
from chatterbox.tts import ChatterboxTTS
|
| 10 |
|
| 11 |
|
| 12 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|