Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,6 +6,8 @@ from unittest.mock import patch
|
|
| 6 |
from TTS.api import TTS
|
| 7 |
import torch
|
| 8 |
import gradio as gr
|
|
|
|
|
|
|
| 9 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
| 10 |
|
| 11 |
# Function to always return 'y'
|
|
@@ -21,7 +23,11 @@ with patch('builtins.input', always_yes):
|
|
| 21 |
@spaces.GPU(enable_queue=True)
|
| 22 |
|
| 23 |
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
|
|
|
|
| 6 |
from TTS.api import TTS
|
| 7 |
import torch
|
| 8 |
import gradio as gr
|
| 9 |
+
from torchaudio import load
|
| 10 |
+
|
| 11 |
os.environ["COQUI_TOS_AGREED"] = "1"
|
| 12 |
|
| 13 |
# Function to always return 'y'
|
|
|
|
| 23 |
@spaces.GPU(enable_queue=True)
|
| 24 |
|
| 25 |
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
# Define the relative path to the audio file
|
| 29 |
+
sa = '../Data/sampleaudio.wav'
|
| 30 |
+
|
| 31 |
|
| 32 |
|
| 33 |
|