Skip to content

Commit

Permalink
Merge branch 'main' into fairseq-container
Browse files Browse the repository at this point in the history
  • Loading branch information
mpsilfve authored May 17, 2022
2 parents 85007ee + c4a2c69 commit e2c2bed
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 364 deletions.
Binary file removed backend_coling/.DS_Store
Binary file not shown.
17 changes: 17 additions & 0 deletions backend_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,23 @@ def api_job_from_eaf():

return jsonify({"job_id":request_id})

@app.route('/api/eaf/tier_list', methods=['POST'])
def parse_and_get_tier_ids():
"""parse n EAF file and if it's valid return tier ids
Parameters
----------
eaf_string: string
eaf file string
Returns
-------
tier_list: JSON list
a list containing tier ids contained in the eaf file
"""
data = request.json
eaf_string = data['eaf_text']
tier_list = get_tier_ids(eaf_string)
return jsonify(tier_list)


# for status check requests
@app.route('/api/job/<int:job_id>')
Expand Down
360 changes: 0 additions & 360 deletions backend_server/templates/form.html

This file was deleted.

Loading

0 comments on commit e2c2bed

Please sign in to comment.