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