Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SayesCode authored Nov 6, 2024
1 parent eb9d677 commit 3471818
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/onyconnect/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ async def generate_service(request: Request, port: str = Form(...), directory: s

return templates.TemplateResponse("index.html", {"request": request, "message": message})

# Bloco para rodar o servidor Uvicorn diretamente
if __name__ == "__main__":
uvicorn.run(app, host="127.0.0.1", port=8000, reload=True)
uvicorn.run("main:app", host="127.0.0.1", port=8000, reload=True)

0 comments on commit 3471818

Please sign in to comment.