Debug spaces app
Browse files- spaces_app.py +1 -1
spaces_app.py
CHANGED
@@ -17,7 +17,7 @@ logger = logging.getLogger(__name__)
|
|
17 |
# Function to fetch audio from a URL
|
18 |
def fetch_audio(input_text):
|
19 |
# Replace with the actual backend URL for generating audio
|
20 |
-
backend_url = "
|
21 |
response = requests.get(backend_url, params={"text": input_text})
|
22 |
if response.status_code == 200:
|
23 |
return response.url # Return the URL of the generated audio
|
|
|
17 |
# Function to fetch audio from a URL
|
18 |
def fetch_audio(input_text):
|
19 |
# Replace with the actual backend URL for generating audio
|
20 |
+
backend_url = "http://127.0.0.1:8080/api/text_to_speech"
|
21 |
response = requests.get(backend_url, params={"text": input_text})
|
22 |
if response.status_code == 200:
|
23 |
return response.url # Return the URL of the generated audio
|