Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
12d076e
1
Parent(s):
aaad161
Update reset ns.response
Browse files
app.py
CHANGED
|
@@ -246,6 +246,7 @@ def predict(prompt, bot):
|
|
| 246 |
f"{atime.duration/(len(prompt) + len(response)):.1f}s/char)" # type: ignore
|
| 247 |
)
|
| 248 |
|
|
|
|
| 249 |
bot.append([prompt, f"{response} \n{_}"])
|
| 250 |
|
| 251 |
return prompt, bot
|
|
|
|
| 246 |
f"{atime.duration/(len(prompt) + len(response)):.1f}s/char)" # type: ignore
|
| 247 |
)
|
| 248 |
|
| 249 |
+
ns.response = ""
|
| 250 |
bot.append([prompt, f"{response} \n{_}"])
|
| 251 |
|
| 252 |
return prompt, bot
|