Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,3 +34,8 @@ def chat(req: ChatRequest):
|
|
| 34 |
stop=["<|end|>"]
|
| 35 |
)
|
| 36 |
return {"reply": output["choices"][0]["text"]}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
stop=["<|end|>"]
|
| 35 |
)
|
| 36 |
return {"reply": output["choices"][0]["text"]}
|
| 37 |
+
|
| 38 |
+
# ⭐ THIS PART WAS MISSING
|
| 39 |
+
if __name__ == "__main__":
|
| 40 |
+
import uvicorn
|
| 41 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|