Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,4 +83,8 @@ async def tts_endpoint(
|
|
| 83 |
f.write(await audio_file.read())
|
| 84 |
|
| 85 |
output_wav = tts_arabic(text, file_path)
|
| 86 |
-
return FileResponse(output_wav, media_type="audio/wav", filename="output.wav")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
f.write(await audio_file.read())
|
| 84 |
|
| 85 |
output_wav = tts_arabic(text, file_path)
|
| 86 |
+
return FileResponse(output_wav, media_type="audio/wav", filename="output.wav")
|
| 87 |
+
|
| 88 |
+
if __name__ == "__main__":
|
| 89 |
+
import uvicorn
|
| 90 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|