Spaces:
Sleeping
Sleeping
Saqib commited on
Update modules/app.py
Browse files- modules/app.py +1 -1
modules/app.py
CHANGED
|
@@ -62,7 +62,7 @@ async def get_audio(url: str):
|
|
| 62 |
if file_stats.st_size <= 30000000:
|
| 63 |
# Construct the URL for the MP3 file
|
| 64 |
mp3_url = f"/audio/{unique_filename}"
|
| 65 |
-
return
|
| 66 |
else:
|
| 67 |
os.remove(out_file)
|
| 68 |
raise HTTPException(status_code=413, detail="Audio file is too large. Limited to about 1.5 hours.")
|
|
|
|
| 62 |
if file_stats.st_size <= 30000000:
|
| 63 |
# Construct the URL for the MP3 file
|
| 64 |
mp3_url = f"/audio/{unique_filename}"
|
| 65 |
+
return mp3_url
|
| 66 |
else:
|
| 67 |
os.remove(out_file)
|
| 68 |
raise HTTPException(status_code=413, detail="Audio file is too large. Limited to about 1.5 hours.")
|