Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KATTA-00 authored Mar 29, 2024
1 parent ba90f7e commit 10f7931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/rest_api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ async def read_main():

# Main function to run the FastAPI application using uvicorn
def api():
uvicorn.run("rest_api.api:app", host="0.0.0.0", port=5000, reload=True)
uvicorn.run("rest_api.api:app", host="0.0.0.0", port=5000, reload=False)

# Check if this script is being run as the main program and start the FastAPI application
if __name__ == "__main__":
uvicorn.run("api:app", host="0.0.0.0", port=5000, reload=True)
uvicorn.run("api:app", host="0.0.0.0", port=5000, reload=False)

0 comments on commit 10f7931

Please sign in to comment.