ysharma HF staff commited on
Commit
4bf24a9
1 Parent(s): cf01eeb

debugging chunk from openAI API

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -67,6 +67,7 @@ def predict(inputs, top_p, temperature, openai_api_key, chat_counter, chatbot=[]
67
 
68
  counter=0
69
  for chunk in response.iter_lines():
 
70
  if counter == 0:
71
  counter+=1
72
  continue
 
67
 
68
  counter=0
69
  for chunk in response.iter_lines():
70
+ print(f"chunk.decode() is ^^ - {chunk.decode()}")
71
  if counter == 0:
72
  counter+=1
73
  continue