tldr-cloud / tldr-bot

MIT License
8 stars 1 forks source link

time to time news is not parsed correclty with the first try #43

Closed b0noI closed 4 years ago

b0noI commented 4 years ago

example:

error: url: https://www.theverge.com/2020/7/8/21317266/twitter-subscription-platform-codename-gryphon-job-listing, error: there is no summary in the response from Cloud AI prediction Traceback (most recent call last): File "/user_code/main.py", line 139, in process_call return process_request(request) File "/user_code/main.py", line 132, in process_request return jsonify(process_url(url, bert_summary, cred.token)) File "/user_code/main.py", line 112, in process_url summary, top_image, title = extract_data(url, bert_summary, token) File "/user_code/main.py", line 62, in extract_data summary = extract_bert_summary(article.text, token) File "/user_code/main.py", line 101, in extract_bert_summary raise ValueError("there is no summary in the response from Cloud AI prediction") ValueError: there is no summary in the response from Cloud AI prediction

worked correctly with the second try