fix_feedback
This commit is contained in:
parent
3fbca7eb49
commit
5550207277
|
@ -2,8 +2,10 @@ FROM python:3.8
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT ["python", "main.py"]
|
||||
|
|
2
main.py
2
main.py
|
@ -99,7 +99,7 @@ def predict():
|
|||
|
||||
@app.route('/feedback', methods = ['POST'])
|
||||
def feedback():
|
||||
data = request.get_json()['feedback']
|
||||
data = request.get_json().get("feedback")
|
||||
print(data)
|
||||
|
||||
cur.execute('INSERT INTO feedback_trial (query, history, janet_modified_query, is_modified_query_correct, user_modified_query, response, preferred_response, response_length_feedback, response_fluency_feedback, response_truth_feedback, response_useful_feedback, response_time_feedback, response_intent) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)',
|
||||
|
|
Loading…
Reference in New Issue