Daniel Marques commited on
Commit
23c348d
1 Parent(s): 01b20fd

feat: add fastapi

Browse files
Files changed (1) hide show
  1. main.py +5 -3
main.py CHANGED
@@ -69,9 +69,11 @@ class Predict(BaseModel):
69
 
70
  app = FastAPI()
71
 
72
- @app.get("/")
73
- def read_root():
74
- return {"Hello": "World"}
 
 
75
 
76
  app.mount("/static", StaticFiles(directory="static"), name="static")
77
 
 
69
 
70
  app = FastAPI()
71
 
72
+ app.mount("/", StaticFiles(directory="static",html = True), name="static")
73
+
74
+ # @app.get("/")
75
+ # def read_root():
76
+ # return {"Hello": "World"}
77
 
78
  app.mount("/static", StaticFiles(directory="static"), name="static")
79