Spaces:
Sleeping
Sleeping
add main.py & end point
Browse files
app.py
CHANGED
|
@@ -77,6 +77,3 @@ def chat(req: ChatRequest):
|
|
| 77 |
reply = output["choices"][0]["text"].split("<|im_end|>")[0].strip()
|
| 78 |
req.history.append([req.message, reply])
|
| 79 |
return ChatResponse(response=reply, updated_history=req.history)
|
| 80 |
-
|
| 81 |
-
if __name__ == "__main__":
|
| 82 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 77 |
reply = output["choices"][0]["text"].split("<|im_end|>")[0].strip()
|
| 78 |
req.history.append([req.message, reply])
|
| 79 |
return ChatResponse(response=reply, updated_history=req.history)
|
|
|
|
|
|
|
|
|