Spaces:
Runtime error
Runtime error
fix reponse type
Browse files
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 =
|
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)
|