Commit
·
5867cf7
1
Parent(s):
9f48851
feat: added model file
Browse files
main.py
CHANGED
@@ -44,14 +44,5 @@ def predict_intent(request: PredictionRequest):
|
|
44 |
return {"intent": best_pred["label"], "confidence": best_pred["score"]}
|
45 |
|
46 |
|
47 |
-
# # Launch FastAPI with Uvicorn
|
48 |
-
# if __name__ == "__main__":
|
49 |
-
# uvicorn.run(app, host="0.0.0.0", port=8000, workers=1)
|
50 |
-
|
51 |
-
|
52 |
-
# from fastapi import FastAPI
|
53 |
-
|
54 |
-
# app=FastAPI()
|
55 |
-
|
56 |
|
57 |
|
|
|
44 |
return {"intent": best_pred["label"], "confidence": best_pred["score"]}
|
45 |
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
|