Update app.py
Browse files
app.py
CHANGED
@@ -396,5 +396,5 @@ async def autocomplete(q: str = Query(..., title='query')):
|
|
396 |
raise HTTPException(status_code=500, detail="An error occurred while processing your request.")
|
397 |
|
398 |
if __name__ == '__main__':
|
399 |
-
port = int(os.getenv("PORT",
|
400 |
uvicorn.run(app=app, host='0.0.0.0', port=port)
|
|
|
396 |
raise HTTPException(status_code=500, detail="An error occurred while processing your request.")
|
397 |
|
398 |
if __name__ == '__main__':
|
399 |
+
port = int(os.getenv("PORT", 7860))
|
400 |
uvicorn.run(app=app, host='0.0.0.0', port=port)
|