Iker commited on
Commit
2c6e439
1 Parent(s): 160596e

Fix stream

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -111,7 +111,7 @@ def generate_text(
111
  cache_handler.add_to_cache(
112
  url=url, title=title, text=text, summary_type=mode, summary=temp
113
  )
114
- temp = finish_generation(temp)
115
  yield title, temp, text
116
 
117
  return title, temp, text
 
111
  cache_handler.add_to_cache(
112
  url=url, title=title, text=text, summary_type=mode, summary=temp
113
  )
114
+ temp = finish_generation(temp.outputs()[-1])
115
  yield title, temp, text
116
 
117
  return title, temp, text