BG5 commited on
Commit
871b55b
·
verified ·
1 Parent(s): 3c38895

Update http.py

Browse files
Files changed (1) hide show
  1. http.py +5 -1
http.py CHANGED
@@ -24,4 +24,8 @@ async def proxy(request: Request, path: str):
24
  content=resp.content,
25
  status_code=resp.status_code,
26
  headers=dict(resp.headers)
27
- )
 
 
 
 
 
24
  content=resp.content,
25
  status_code=resp.status_code,
26
  headers=dict(resp.headers)
27
+ )
28
+
29
+ if __name__ == "__main__":
30
+ # 运行FastAPI应用
31
+ uvicorn.run("http:app", host="0.0.0.0", port=8000, reload=True)