Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -76,9 +76,9 @@ def get_response_with_fallback(prompt):
|
|
76 |
|
77 |
@app.post("/predict", response_model=PersonalityResponse)
|
78 |
def predict_personality(request: PersonalityRequest):
|
79 |
-
input_datas = list(map(five2one, request.responses))
|
80 |
|
81 |
-
input_data = np.array(
|
82 |
|
83 |
prediction = model.predict(input_data)
|
84 |
|
|
|
76 |
|
77 |
@app.post("/predict", response_model=PersonalityResponse)
|
78 |
def predict_personality(request: PersonalityRequest):
|
79 |
+
# input_datas = list(map(five2one, request.responses))
|
80 |
|
81 |
+
input_data = np.array(request.responses).reshape(1, -1, 1)
|
82 |
|
83 |
prediction = model.predict(input_data)
|
84 |
|