Spaces:
Running
on
Zero
Running
on
Zero
root
commited on
Commit
•
2e22cc7
1
Parent(s):
135611f
fix bug
Browse files
app.py
CHANGED
@@ -83,11 +83,13 @@ def ovis_chat(chatbot, image_input):
|
|
83 |
yield chatbot
|
84 |
thread.join()
|
85 |
# debug
|
86 |
-
print('*'*
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
|
|
|
|
91 |
|
92 |
def clear_chat():
|
93 |
return [], None, ""
|
|
|
83 |
yield chatbot
|
84 |
thread.join()
|
85 |
# debug
|
86 |
+
print('*'*60)
|
87 |
+
print('*'*60)
|
88 |
+
for i, (request, answer) in enumerate(chatbot[:-1], 1):
|
89 |
+
print(f'Q{i}:\n {request}')
|
90 |
+
print(f'A{i}:\n {answer}')
|
91 |
+
print('New_Q:\n', text_input)
|
92 |
+
print('New_A:\n', response)
|
93 |
|
94 |
def clear_chat():
|
95 |
return [], None, ""
|