Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9291e29

Browse files
committed
added code to deploy backend on render
1 parent3535aff commit9291e29

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed
280 Bytes
Binary file not shown.

‎python_backend/main.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ def simulate_dfa(data: DFARequest):
4949

5050
# ✅ Serve PDFs at http://localhost:8000/pdf/dfa_output.pdf
5151
app.mount("/pdf",StaticFiles(directory="pdf"),name="pdf")
52+
53+
if__name__=="__main__":
54+
importuvicorn
55+
port=int(os.environ.get("PORT",8000))
56+
uvicorn.run("main:app",host="0.0.0.0",port=port)
10.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp