Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,7 @@ from pydantic import BaseModel
|
|
4 |
import httpx
|
5 |
import asyncio
|
6 |
|
7 |
-
app = FastAPI()
|
8 |
-
|
9 |
# Enable CORS
|
10 |
app.add_middleware(
|
11 |
CORSMiddleware,
|
@@ -46,4 +45,4 @@ async def test_proxy(proxy_test: ProxyTest):
|
|
46 |
|
47 |
if __name__ == "__main__":
|
48 |
import uvicorn
|
49 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
4 |
import httpx
|
5 |
import asyncio
|
6 |
|
7 |
+
app = FastAPI()
|
|
|
8 |
# Enable CORS
|
9 |
app.add_middleware(
|
10 |
CORSMiddleware,
|
|
|
45 |
|
46 |
if __name__ == "__main__":
|
47 |
import uvicorn
|
48 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|