Update main.py
Browse files
main.py
CHANGED
@@ -52,3 +52,7 @@ def generate(item: Item):
|
|
52 |
async def generate_text(item: Item):
|
53 |
return {"response": generate(item)}
|
54 |
|
|
|
|
|
|
|
|
|
|
52 |
async def generate_text(item: Item):
|
53 |
return {"response": generate(item)}
|
54 |
|
55 |
+
@app.get("/api/ping")
|
56 |
+
async def ping(request: Request):
|
57 |
+
return "pong"
|
58 |
+
|