Spaces:
Sleeping
Sleeping
add status route
Browse files
main.py
CHANGED
@@ -37,6 +37,10 @@ app.add_middleware(
|
|
37 |
allow_headers=["*"],
|
38 |
)
|
39 |
|
|
|
|
|
|
|
|
|
40 |
@app.post("/generate-message")
|
41 |
async def root(utterance: UserMSGRequest):
|
42 |
key_list = r.keys()
|
|
|
37 |
allow_headers=["*"],
|
38 |
)
|
39 |
|
40 |
+
@app.get("/status")
|
41 |
+
def status ():
|
42 |
+
return {"status": "OK"}
|
43 |
+
|
44 |
@app.post("/generate-message")
|
45 |
async def root(utterance: UserMSGRequest):
|
46 |
key_list = r.keys()
|