Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ logger = logging.getLogger(__name__)
|
|
46 |
app = fastapi.FastAPI(
|
47 |
title="OpenGenAI",
|
48 |
description="Your Excellect AI Physician")
|
49 |
-
|
50 |
app.add_middleware(
|
51 |
CORSMiddleware,
|
52 |
allow_origins = ["*"],
|
@@ -54,6 +54,7 @@ app.add_middleware(
|
|
54 |
allow_methods=["*"],
|
55 |
allow_headers=["*"]
|
56 |
)
|
|
|
57 |
@app.get("/")
|
58 |
def index():
|
59 |
return fastapi.responses.RedirectResponse(url="/docs")
|
|
|
46 |
app = fastapi.FastAPI(
|
47 |
title="OpenGenAI",
|
48 |
description="Your Excellect AI Physician")
|
49 |
+
"""
|
50 |
app.add_middleware(
|
51 |
CORSMiddleware,
|
52 |
allow_origins = ["*"],
|
|
|
54 |
allow_methods=["*"],
|
55 |
allow_headers=["*"]
|
56 |
)
|
57 |
+
"""
|
58 |
@app.get("/")
|
59 |
def index():
|
60 |
return fastapi.responses.RedirectResponse(url="/docs")
|