Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clowdflows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alain Shakour
clowdflows
Commits
9aa68ae2
Commit
9aa68ae2
authored
Dec 24, 2015
by
Janez K
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert
parent
c2fd83cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
workflows/streaming/library.py
workflows/streaming/library.py
+3
-7
No files found.
workflows/streaming/library.py
View file @
9aa68ae2
...
...
@@ -346,13 +346,9 @@ def streaming_triplet_extraction(input_dict,widget,stream=None):
def
streaming_summarize_url
(
input_dict
,
widget
,
stream
=
None
):
import
pyteaser
try
:
summaries
=
pyteaser
.
SummarizeUrl
(
input_dict
[
'url'
])
output_dict
=
{}
output_dict
[
'summary'
]
=
" "
.
join
(
summaries
)
except
:
output_dict
=
{}
output_dict
[
'summary'
]
=
''
summaries
=
pyteaser
.
SummarizeUrl
(
input_dict
[
'url'
])
output_dict
=
{}
output_dict
[
'summary'
]
=
" "
.
join
(
summaries
)
return
output_dict
def
streaming_get_article_text
(
input_dict
,
widget
,
stream
=
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment