EurekaPotato commited on
Commit
eefac30
·
verified ·
1 Parent(s): b40c862

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. 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
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
 
 
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)