Skip to content
Snippets Groups Projects
Commit a748d352 authored by Thomas Edwards's avatar Thomas Edwards
Browse files

initial commit

parent a4a0d6c8
No related branches found
No related tags found
No related merge requests found
from func.ner.ner import *
from func.usas.usas import *
def get_ner_for_data():
result = run_ner_on_text()
return result
def get_usas_for_data():
result = run_usas_on_text()
return result
def run_ner_on_text():
return "hello ner"
def run_usas_on_text():
return "hello usas"
\ No newline at end of file
from flask import Flask
from api.api_functions import *
app = Flask(__name__)
......@@ -10,9 +12,11 @@ def home():
@app.route("/ner")
def ner():
return "Hello ner!"
result = get_ner_for_data()
return result
@app.route("/usas")
def usas():
return "Hello usas!"
result = get_usas_for_data()
return result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment