datien228 commited on
Commit
0672089
·
1 Parent(s): 29575cf

fix reponse type

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def recommend():
25
  # Call the function summarize to run the text summarization
26
  try:
27
  short_output_summary, long_output_summary = summarize(input_text)
28
- response = make_response(jsonify({'short': short_output_summary.strip(), 'long': long_output_summary.strip()}))
29
  response.set_cookie('cookie1', 'value1', samesite='Lax')
30
  response.set_cookie('cookie2', 'value2', samesite='None', secure=True)
31
  print(response)
 
25
  # Call the function summarize to run the text summarization
26
  try:
27
  short_output_summary, long_output_summary = summarize(input_text)
28
+ response = jsonify({'short': short_output_summary.strip(), 'long': long_output_summary.strip()})
29
  response.set_cookie('cookie1', 'value1', samesite='Lax')
30
  response.set_cookie('cookie2', 'value2', samesite='None', secure=True)
31
  print(response)