mosha255 commited on
Commit
53bf901
·
unverified ·
1 Parent(s): 2c2ef3a

Debug spaces app

Browse files
Files changed (1) hide show
  1. 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 = "https://stem-content-ai-project-swahili-tts-model.hf.space/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
 
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