Spaces:
Sleeping
Sleeping
john
commited on
Commit
·
76a7dba
1
Parent(s):
2ee2797
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 53 |
count += 1
|
| 54 |
if count >= 500 or (token == llm2.token_eos()):
|
| 55 |
break
|
| 56 |
-
output += text.decode()
|
| 57 |
yield output
|
| 58 |
gr.HTML("Thanks for checking out this app!")
|
| 59 |
gr.Button("Answer").click(
|
|
|
|
| 53 |
count += 1
|
| 54 |
if count >= 500 or (token == llm2.token_eos()):
|
| 55 |
break
|
| 56 |
+
output += text.decode(errors='ignore')
|
| 57 |
yield output
|
| 58 |
gr.HTML("Thanks for checking out this app!")
|
| 59 |
gr.Button("Answer").click(
|