Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -48,11 +48,11 @@ def generate(item: Item):
|
|
48 |
output += response.token.text
|
49 |
return output
|
50 |
|
51 |
-
@app.post("/chat/completions
|
52 |
async def generate_text(item: Item):
|
53 |
return {"response": generate(item)}
|
54 |
|
55 |
-
@app.get("/
|
56 |
async def ping(request: Request):
|
57 |
return "pong"
|
58 |
|
|
|
48 |
output += response.token.text
|
49 |
return output
|
50 |
|
51 |
+
@app.post("/chat/completions")
|
52 |
async def generate_text(item: Item):
|
53 |
return {"response": generate(item)}
|
54 |
|
55 |
+
@app.get("/ping")
|
56 |
async def ping(request: Request):
|
57 |
return "pong"
|
58 |
|