Spaces:
Runtime error
Runtime error
root
commited on
Commit
Β·
b116de8
1
Parent(s):
2e22cc7
fix bug
Browse files
app.py
CHANGED
|
@@ -85,11 +85,13 @@ def ovis_chat(chatbot, image_input):
|
|
| 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, ""
|
|
|
|
| 85 |
# debug
|
| 86 |
print('*'*60)
|
| 87 |
print('*'*60)
|
| 88 |
+
print('OVIS_CONV_START')
|
| 89 |
for i, (request, answer) in enumerate(chatbot[:-1], 1):
|
| 90 |
print(f'Q{i}:\n {request}')
|
| 91 |
print(f'A{i}:\n {answer}')
|
| 92 |
print('New_Q:\n', text_input)
|
| 93 |
print('New_A:\n', response)
|
| 94 |
+
print('OVIS_CONV_END')
|
| 95 |
|
| 96 |
def clear_chat():
|
| 97 |
return [], None, ""
|