rishab1090 commited on
Commit
965c289
·
verified ·
1 Parent(s): 21cc342

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -13,6 +13,7 @@ import matplotlib.pyplot as plt
13
  from tqdm import tqdm
14
  from shapely.geometry import LineString, mapping
15
  import geopandas as gpd
 
16
 
17
  # gravity
18
  g = 9.81
@@ -447,3 +448,9 @@ async def run_endpoint(
447
  @app.get("/health")
448
  def health():
449
  return {"status":"ok"}
 
 
 
 
 
 
 
13
  from tqdm import tqdm
14
  from shapely.geometry import LineString, mapping
15
  import geopandas as gpd
16
+ from fastapi.responses import RedirectResponse
17
 
18
  # gravity
19
  g = 9.81
 
448
  @app.get("/health")
449
  def health():
450
  return {"status":"ok"}
451
+
452
+
453
+ @app.get("/")
454
+ def root():
455
+ return RedirectResponse(url="/docs")
456
+