Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- handler.py +3 -1
handler.py
CHANGED
|
@@ -385,4 +385,6 @@ async def extract_audio_features_base64(data: AudioBase64Request):
|
|
| 385 |
|
| 386 |
if __name__ == "__main__":
|
| 387 |
import uvicorn
|
| 388 |
-
|
|
|
|
|
|
|
|
|
| 385 |
|
| 386 |
if __name__ == "__main__":
|
| 387 |
import uvicorn
|
| 388 |
+
import os
|
| 389 |
+
port = int(os.environ.get("PORT", 7860))
|
| 390 |
+
uvicorn.run(app, host="0.0.0.0", port=port)
|