Spaces:
Runtime error
Runtime error
venkat-srinivasan-nexusflow
commited on
Commit
β’
cdc924d
1
Parent(s):
1c4f8f5
Update app.py
Browse files
app.py
CHANGED
@@ -430,12 +430,12 @@ class RavenDemo(gr.Blocks):
|
|
430 |
summary_model_prompt, **SUMMARY_MODEL_GENERATION_KWARGS
|
431 |
)
|
432 |
for s in stream:
|
433 |
-
s = s.removesuffix("
|
434 |
for c in s:
|
435 |
summary_model_summary += c
|
436 |
summary_model_summary = (
|
437 |
summary_model_summary.lstrip().removesuffix(
|
438 |
-
"
|
439 |
)
|
440 |
)
|
441 |
yield get_returns()
|
|
|
430 |
summary_model_prompt, **SUMMARY_MODEL_GENERATION_KWARGS
|
431 |
)
|
432 |
for s in stream:
|
433 |
+
s = s.removesuffix("</s>")
|
434 |
for c in s:
|
435 |
summary_model_summary += c
|
436 |
summary_model_summary = (
|
437 |
summary_model_summary.lstrip().removesuffix(
|
438 |
+
"</s>"
|
439 |
)
|
440 |
)
|
441 |
yield get_returns()
|