Update app.py
Browse files
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 |
+
|