Iker commited on
Commit
12b7ae4
1 Parent(s): 2c6e439

Fix stream

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -108,10 +108,11 @@ def generate_text(
108
  "Error",
109
  )
110
 
 
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
 
108
  "Error",
109
  )
110
 
111
+ temp = temp.outputs()[-1]
112
  cache_handler.add_to_cache(
113
  url=url, title=title, text=text, summary_type=mode, summary=temp
114
  )
115
+ temp = finish_generation(temp)
116
  yield title, temp, text
117
 
118
  return title, temp, text