mudaza commited on
Commit
aaf24e8
·
1 Parent(s): 094537b

modified code and add files

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,9 +31,9 @@ class Disease(BaseModel):
31
  class Symptoms(BaseModel):
32
  query: str
33
 
34
- # @app.get("/")
35
- # def greet_json():
36
- # return {"Hello": "World!"}
37
 
38
  @app.post("/", response_model=list[Disease])
39
  async def predict(symptoms: Symptoms):
 
31
  class Symptoms(BaseModel):
32
  query: str
33
 
34
+ @app.get("/")
35
+ def home():
36
+ return {"Hello": "World!"}
37
 
38
  @app.post("/", response_model=list[Disease])
39
  async def predict(symptoms: Symptoms):