nxphi47 commited on
Commit
2648bf6
1 Parent(s): f5fe8f2

Update multipurpose_chatbot/demos/text_completion.py

Browse files
multipurpose_chatbot/demos/text_completion.py CHANGED
@@ -108,6 +108,8 @@ def generate_text_completion_stream_engine(
108
  else:
109
  response, num_tokens = outputs, -1
110
  yield message + response, f"{num_tokens} tokens"
 
 
111
 
112
  if response is not None:
113
  yield message + response, f"{num_tokens} tokens"
 
108
  else:
109
  response, num_tokens = outputs, -1
110
  yield message + response, f"{num_tokens} tokens"
111
+
112
+ print(f'Completion:\n{message}|>>>>>|{response}')
113
 
114
  if response is not None:
115
  yield message + response, f"{num_tokens} tokens"