AnminBhu commited on
Commit
4445fc4
·
verified ·
1 Parent(s): e37e95b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -57,3 +57,7 @@ async def chat(request: ChatRequest):
57
  gen_text = tokenizer.decode(outputs[0][inputs.input_ids.size(1):], skip_special_tokens=True).strip()
58
 
59
  return {"response": gen_text}
 
 
 
 
 
57
  gen_text = tokenizer.decode(outputs[0][inputs.input_ids.size(1):], skip_special_tokens=True).strip()
58
 
59
  return {"response": gen_text}
60
+ if __name__ == "__main__":
61
+ import uvicorn
62
+ uvicorn.run(app, host="0.0.0.0", port=7860)
63
+