Skip to content

Commit

Permalink
Minor typo-level error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emaguire committed Jan 21, 2025
1 parent a704b91 commit ba997ab
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 28111_mistake.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ ENV FLASK_APP app

EXPOSE 5000
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:5000", "app.routes:app"]
# ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:5000", "app.routes:app", "--reload"]
2 changes: 1 addition & 1 deletion app/evaluation_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def CASS_calculation(text_sim_ss,k_graph):
if text_sim_ss == 'Error Text Input Is Empty' or text_sim_ss == 'None:Error! Source Text Was Different as Segmentations differ in length':
overall_sim='None'
else:
overall_sim = 2((float(k_graph)*float(text_sim_ss))/(float(k_graph)+float(text_sim_ss)))
overall_sim = 2*((float(k_graph)*float(text_sim_ss))/(float(k_graph)+float(text_sim_ss)))

return overall_sim

Expand Down
5 changes: 3 additions & 2 deletions app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def get_data_file():
f1 = request.files['file1']
f2 = request.files['file2']


eval = evaluation()

f1.save(f1.filename)
Expand Down Expand Up @@ -123,5 +124,5 @@ def get_data_file():
# logging.debug("Received GET request")
return render_template('docs.html')

# if __name__ == '__main__':
# app.run(debug=True)
if __name__ == '__main__':
app.run(debug=True)
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ services:
amf-evaluation-metrics:
container_name: amf-evaluation-metrics
build: .
# volumes:
# - ./app:/home/AMF_Evaluation_Metrics/app
ports:
- "8000:5000"

0 comments on commit ba997ab

Please sign in to comment.