moriire commited on
Commit
1ede826
1 Parent(s): aad9e06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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")