Commit 9aa68ae2 authored by Janez K's avatar Janez K

revert

parent c2fd83cd
...@@ -346,13 +346,9 @@ def streaming_triplet_extraction(input_dict,widget,stream=None): ...@@ -346,13 +346,9 @@ def streaming_triplet_extraction(input_dict,widget,stream=None):
def streaming_summarize_url(input_dict,widget,stream=None): def streaming_summarize_url(input_dict,widget,stream=None):
import pyteaser import pyteaser
try: summaries = pyteaser.SummarizeUrl(input_dict['url'])
summaries = pyteaser.SummarizeUrl(input_dict['url']) output_dict = {}
output_dict = {} output_dict['summary']=" ".join(summaries)
output_dict['summary']=" ".join(summaries)
except:
output_dict = {}
output_dict['summary']=''
return output_dict return output_dict
def streaming_get_article_text(input_dict,widget,stream=None): def streaming_get_article_text(input_dict,widget,stream=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment