Closed susiejojo closed 3 years ago
Similar to @sh-biswas, the model returns a JSON response within 15 seconds and the model gets downloaded only the very first time so everything's working good. Just one thing, there was an error in the terminal about the incompatibility in shape of the tensor, the shape of the tensor required was (None, 1500) but shape it got was (None, 8). But despite that it is giving the json results so I guess its okay.
Similar to @sh-biswas, the model returns a JSON response within 15 seconds and the model gets downloaded only the very first time so everything's working good. Just one thing, there was an error in the terminal about the incompatibility in shape of the tensor, the shape of the tensor required was (None, 1500) but shape it got was (None, 8). But despite that it is giving the json results so I guess its okay.
Yeah so that's the bug why I can't get model.json. I'll look into it, but since it's working atm ig we should be fine.
Changes made:
Should solve #2 and #3 .
/predict
for fetching predictionspredict_type
function inpredict_types.py
to return the predicted user personality type.{"type" : <personality_name> }
Tests to be checked
index.html
on your browser andflask run
on your terminal together.What to do next: