root commited on
Commit
2e22cc7
1 Parent(s): 135611f
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -83,11 +83,13 @@ def ovis_chat(chatbot, image_input):
83
  yield chatbot
84
  thread.join()
85
  # debug
86
- print('*'*40)
87
- for request,answer in chatbot[:-1]:
88
- print('Q:',request,'\nA:', answer[0:100])
89
- print('New Q:\n', text_input)
90
- print('New A:\n', response)
 
 
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, ""