nath13huggingface commited on
Commit
257e726
·
1 Parent(s): 5ec0c43

modif app.y

Browse files
__pycache__/app.cpython-311.pyc CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
 
__pycache__/app.cpython-312.pyc CHANGED
Binary files a/__pycache__/app.cpython-312.pyc and b/__pycache__/app.cpython-312.pyc differ
 
app.py CHANGED
@@ -44,6 +44,10 @@ import os
44
 
45
  app = FastAPI(title="Getaround Pricing API")
46
 
 
 
 
 
47
  # Chemin vers le modèle
48
  MODEL_PATH = os.path.join("model", "modele_xgb_getaround.pkl")
49
 
 
44
 
45
  app = FastAPI(title="Getaround Pricing API")
46
 
47
+ @app.get("/")
48
+ def root():
49
+ return RedirectResponse(url="/docs")
50
+
51
  # Chemin vers le modèle
52
  MODEL_PATH = os.path.join("model", "modele_xgb_getaround.pkl")
53