Spaces:
Sleeping
Sleeping
Commit
·
d869217
1
Parent(s):
98b619a
app.py
CHANGED
@@ -124,7 +124,7 @@ def reply(prompt):
|
|
124 |
|
125 |
# --- Phase 3: Generate and Stream Summary (Replacing Combined Output) ---
|
126 |
print(f"Starting summary generation for final output: {combined_output[:100]}...")
|
127 |
-
for text in generate_summary_stream(summarizer_model, summarizer_tokenizer, combined_output, max_length=
|
128 |
print(f"Streaming summary: {text}")
|
129 |
yield text
|
130 |
|
|
|
124 |
|
125 |
# --- Phase 3: Generate and Stream Summary (Replacing Combined Output) ---
|
126 |
print(f"Starting summary generation for final output: {combined_output[:100]}...")
|
127 |
+
for text in generate_summary_stream(summarizer_model, summarizer_tokenizer, combined_output, max_length=100, min_length=30):
|
128 |
print(f"Streaming summary: {text}")
|
129 |
yield text
|
130 |
|