Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ from huggingface_hub import HfApi
|
|
39 |
|
40 |
# will use api to restart space on a unrecoverable error
|
41 |
api = HfApi(token=HF_TOKEN)
|
42 |
-
repo_id = "
|
43 |
|
44 |
# Use never ffmpeg binary for Ubuntu20 to use denoising for microphone input
|
45 |
print("Export newer ffmpeg binary for denoise filter")
|
@@ -66,9 +66,9 @@ model.load_checkpoint(
|
|
66 |
checkpoint_path=os.path.join(model_path, "model.pth"),
|
67 |
vocab_path=os.path.join(model_path, "vocab.json"),
|
68 |
eval=True,
|
69 |
-
use_deepspeed=
|
70 |
)
|
71 |
-
model.
|
72 |
|
73 |
# This is for debugging purposes only
|
74 |
DEVICE_ASSERT_DETECTED = 0
|
|
|
39 |
|
40 |
# will use api to restart space on a unrecoverable error
|
41 |
api = HfApi(token=HF_TOKEN)
|
42 |
+
repo_id = "Abhinay45/XTTS-IITM"
|
43 |
|
44 |
# Use never ffmpeg binary for Ubuntu20 to use denoising for microphone input
|
45 |
print("Export newer ffmpeg binary for denoise filter")
|
|
|
66 |
checkpoint_path=os.path.join(model_path, "model.pth"),
|
67 |
vocab_path=os.path.join(model_path, "vocab.json"),
|
68 |
eval=True,
|
69 |
+
use_deepspeed=False,
|
70 |
)
|
71 |
+
model.cpu()
|
72 |
|
73 |
# This is for debugging purposes only
|
74 |
DEVICE_ASSERT_DETECTED = 0
|