Spaces:
Runtime error
Runtime error
Update palmapi.py
Browse files- palmapi.py +1 -1
palmapi.py
CHANGED
@@ -27,7 +27,7 @@ class PaLMChatPromptFmt(PromptFmt):
|
|
27 |
ping = pingpong.ping[:truncate_size]
|
28 |
pong = pingpong.pong
|
29 |
|
30 |
-
if pong is None:
|
31 |
return [
|
32 |
{
|
33 |
"author": "USER",
|
|
|
27 |
ping = pingpong.ping[:truncate_size]
|
28 |
pong = pingpong.pong
|
29 |
|
30 |
+
if pong is None or pong.strip() == "":
|
31 |
return [
|
32 |
{
|
33 |
"author": "USER",
|