marcmaxmeister commited on
Commit
7015e07
·
verified ·
1 Parent(s): 486a8b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -2,6 +2,7 @@ import os
2
  from fastapi import FastAPI, Request, HTTPException
3
  import httpx
4
  from urllib.parse import urlencode
 
5
 
6
  app = FastAPI()
7
 
@@ -37,6 +38,8 @@ async def proxy_request(request: Request):
37
  raise HTTPException(status_code=500, detail=f"Network error: {str(e)}")
38
 
39
 
 
 
40
 
41
 
42
 
 
2
  from fastapi import FastAPI, Request, HTTPException
3
  import httpx
4
  from urllib.parse import urlencode
5
+ import uvicorn
6
 
7
  app = FastAPI()
8
 
 
38
  raise HTTPException(status_code=500, detail=f"Network error: {str(e)}")
39
 
40
 
41
+ if __name__ == "__main__":
42
+ uvicorn.run(app, host="0.0.0.0", port=7860)
43
 
44
 
45