Skip to content

Commit

Permalink
new(all): General Bots reading comprehension.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jul 14, 2021
1 parent 1b14186 commit 5dbe900
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@
from allennlp.predictors.predictor import Predictor
import json

logging.info('Starting General Bots Models server.')

# https://ai.google.com/research/NaturalQuestions

predictor = None

from flask import Flask, render_template, request
import hmac



app = Flask(__name__)

@app.route("/query", methods=['POST'])

@app.route("/reading-comprehension", methods=['POST'])
def index():
logging.info('General Bots QA.')

Expand All @@ -40,6 +45,6 @@ def index():
else:
return "No answers for this question."

if __name__ == '__main__':
app.run(debug=True)
app.run(debug=True)


0 comments on commit 5dbe900

Please sign in to comment.