Spaces:
Sleeping
Sleeping
Afrinetwork7
commited on
Commit
•
311f9e9
1
Parent(s):
a921671
Update app.py
Browse files
app.py
CHANGED
@@ -169,8 +169,8 @@ async def synthesize_speech(request: TTSRequest):
|
|
169 |
)
|
170 |
logger.info(f"File uploaded successfully to S3: {filename}")
|
171 |
|
172 |
-
# Generate the public URL
|
173 |
-
url = f"https://s3.{S3_REGION}.amazonaws.com/{S3_BUCKET}/{
|
174 |
logger.info(f"Public URL generated: {url}")
|
175 |
|
176 |
return JSONResponse(content={"audio_url": url})
|
|
|
169 |
)
|
170 |
logger.info(f"File uploaded successfully to S3: {filename}")
|
171 |
|
172 |
+
# Generate the public URL with the correct format
|
173 |
+
url = f"https://s3.{S3_REGION}.amazonaws.com/{S3_BUCKET}/{filename}"
|
174 |
logger.info(f"Public URL generated: {url}")
|
175 |
|
176 |
return JSONResponse(content={"audio_url": url})
|