rohanshaw commited on
Commit
2387eb5
·
verified ·
1 Parent(s): 6a0c0af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(input_datas).reshape(1, -1, 1)
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