Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from typing import List
|
|
4 |
# ---- Make Spaces happy: force CPU & avoid MPS/CUDA surprises ----
|
5 |
os.environ.setdefault("CUDA_VISIBLE_DEVICES", "")
|
6 |
os.environ.setdefault("PYTORCH_ENABLE_MPS_FALLBACK", "1")
|
|
|
7 |
|
8 |
import numpy as np
|
9 |
import gradio as gr
|
|
|
4 |
# ---- Make Spaces happy: force CPU & avoid MPS/CUDA surprises ----
|
5 |
os.environ.setdefault("CUDA_VISIBLE_DEVICES", "")
|
6 |
os.environ.setdefault("PYTORCH_ENABLE_MPS_FALLBACK", "1")
|
7 |
+
os.environ.setdefault("COQUI_TOS_AGREED", "1") # add this line
|
8 |
|
9 |
import numpy as np
|
10 |
import gradio as gr
|