Spaces:
Runtime error
Runtime error
fix: print results
Browse files
app.py
CHANGED
@@ -847,7 +847,7 @@ class Chatbot(gr.Chatbot):
|
|
847 |
processed_messages = []
|
848 |
for message_pair in y:
|
849 |
result = ""
|
850 |
-
|
851 |
if message_pair[0] is not None:
|
852 |
result += message_pair[0]
|
853 |
if message_pair[1] is not None:
|
@@ -862,6 +862,9 @@ class Chatbot(gr.Chatbot):
|
|
862 |
)
|
863 |
result = result.replace('؛','\n').replace('/',' ** ').strip()
|
864 |
result = result[:result.rfind('\n')] # filter till the end verse, do not publish not complete verses
|
|
|
|
|
|
|
865 |
processed_messages.append(
|
866 |
[
|
867 |
None,self._postprocess_chat_messages(result)
|
|
|
847 |
processed_messages = []
|
848 |
for message_pair in y:
|
849 |
result = ""
|
850 |
+
|
851 |
if message_pair[0] is not None:
|
852 |
result += message_pair[0]
|
853 |
if message_pair[1] is not None:
|
|
|
862 |
)
|
863 |
result = result.replace('؛','\n').replace('/',' ** ').strip()
|
864 |
result = result[:result.rfind('\n')] # filter till the end verse, do not publish not complete verses
|
865 |
+
|
866 |
+
print('Message Pairs: ',message_pair[0],message_pair[1], result)
|
867 |
+
|
868 |
processed_messages.append(
|
869 |
[
|
870 |
None,self._postprocess_chat_messages(result)
|