Skip to content

Commit

Permalink
fix: change deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jusa3 committed Nov 18, 2024
1 parent 7548b47 commit e57e38f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,13 @@ def predict():
variable = request.args.get('variable')

if variable is None:
print('Variable is None')
return jsonify({'errorCode': 404, 'message': 'Variable not found'})
else:
result = pipe(variable)
result_sorted = sorted(result[0], key=lambda x: x['score'], reverse=True)

mapped_result = []
print("res",result_sorted)
print("mapp", mapped_tags)

for res in result_sorted:

mapped_result.append(
Expand Down
1 change: 1 addition & 0 deletions api/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ Werkzeug==2.2.2
simpletransformers==0.63.9
torch==1.12.1
transformers==4.24.0
numpy<2

0 comments on commit e57e38f

Please sign in to comment.