Spaces:
Running
on
Zero
Running
on
Zero
Fix stream
Browse files
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
|
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
|