Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -289,6 +289,11 @@ executor = ThreadPoolExecutor()
|
|
| 289 |
class Query(BaseModel):
|
| 290 |
message: str
|
| 291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 292 |
@app.post("/ask")
|
| 293 |
async def chat_fn(query: Query):
|
| 294 |
message = query.message
|
|
|
|
| 289 |
class Query(BaseModel):
|
| 290 |
message: str
|
| 291 |
|
| 292 |
+
@app.get("/")
|
| 293 |
+
def read_root():
|
| 294 |
+
return {"message": "Apollo Medical Chatbot API is running"}
|
| 295 |
+
|
| 296 |
+
|
| 297 |
@app.post("/ask")
|
| 298 |
async def chat_fn(query: Query):
|
| 299 |
message = query.message
|