Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
•
8a8420b
1
Parent(s):
57dbedc
输出保留缩进
Browse files- modules/overwrites.py +3 -1
modules/overwrites.py
CHANGED
@@ -61,7 +61,9 @@ def postprocess_chat_messages(
|
|
61 |
"is_file": True,
|
62 |
}
|
63 |
elif isinstance(chat_message, str):
|
64 |
-
chat_message = inspect.cleandoc(chat_message)
|
|
|
|
|
65 |
return chat_message
|
66 |
else:
|
67 |
raise ValueError(f"Invalid message for Chatbot component: {chat_message}")
|
|
|
61 |
"is_file": True,
|
62 |
}
|
63 |
elif isinstance(chat_message, str):
|
64 |
+
# chat_message = inspect.cleandoc(chat_message)
|
65 |
+
# escape html spaces
|
66 |
+
chat_message = chat_message.replace(" ", " ")
|
67 |
return chat_message
|
68 |
else:
|
69 |
raise ValueError(f"Invalid message for Chatbot component: {chat_message}")
|