AhmadA82 commited on
Commit
f16051a
·
verified ·
1 Parent(s): 0f25d4d

add main.py & end point

Browse files
Files changed (1) hide show
  1. app.py +0 -3
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)