Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse files- demo.py +3 -0
- gradio_app.py +3 -0
demo.py
CHANGED
|
@@ -4,6 +4,9 @@ import logging
|
|
| 4 |
from dotenv import load_dotenv
|
| 5 |
import re
|
| 6 |
|
|
|
|
|
|
|
|
|
|
| 7 |
# Add the current directory to path to help with imports
|
| 8 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 9 |
if current_dir not in sys.path:
|
|
|
|
| 4 |
from dotenv import load_dotenv
|
| 5 |
import re
|
| 6 |
|
| 7 |
+
# Set COQUI_TOS_AGREED to 1 to automatically accept the Terms of Service for Coqui TTS models
|
| 8 |
+
os.environ['COQUI_TOS_AGREED'] = '1'
|
| 9 |
+
|
| 10 |
# Add the current directory to path to help with imports
|
| 11 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 12 |
if current_dir not in sys.path:
|
gradio_app.py
CHANGED
|
@@ -8,6 +8,9 @@ from dotenv import load_dotenv
|
|
| 8 |
import threading
|
| 9 |
import shutil
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
# Add the current directory to path to help with imports
|
| 12 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 13 |
if current_dir not in sys.path:
|
|
|
|
| 8 |
import threading
|
| 9 |
import shutil
|
| 10 |
|
| 11 |
+
# Set COQUI_TOS_AGREED to 1 to automatically accept the Terms of Service for Coqui TTS models
|
| 12 |
+
os.environ['COQUI_TOS_AGREED'] = '1'
|
| 13 |
+
|
| 14 |
# Add the current directory to path to help with imports
|
| 15 |
current_dir = os.path.dirname(os.path.abspath(__file__))
|
| 16 |
if current_dir not in sys.path:
|