ysharma HF staff commited on
Commit
b597c1d
1 Parent(s): d5d74c4
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -87,9 +87,9 @@ def parse_text(text):
87
 
88
 
89
  def predict(RETRY_FLAG, input, chatbot, max_length, top_p, temperature, history, past_key_values):
90
- print(f"Inside predict, user_input1 is - {user_input}")
91
  chatbot.append((parse_text(input), ""))
92
- print(f"Inside predict, user_input1 is - {user_input}")
93
  print(f"Inside predict, chatbot is - {chatbot}")
94
  print(f"Inside predict, history is - {history}")
95
  #if RETRY_FLAG:
@@ -100,8 +100,8 @@ def predict(RETRY_FLAG, input, chatbot, max_length, top_p, temperature, history,
100
  max_length=max_length, top_p=top_p,
101
  temperature=temperature):
102
  chatbot[-1] = (parse_text(input), parse_text(response))
103
- print(f"Inside predict, chatbot2 is - {chatbot}")
104
- print(f"Inside predict, history2 is - {history}")
105
 
106
  yield chatbot, history, past_key_values
107
 
 
87
 
88
 
89
  def predict(RETRY_FLAG, input, chatbot, max_length, top_p, temperature, history, past_key_values):
90
+ print(f"Inside predict, user_input1 is - {input}")
91
  chatbot.append((parse_text(input), ""))
92
+ print(f"Inside predict, user_input2 is - {input}")
93
  print(f"Inside predict, chatbot is - {chatbot}")
94
  print(f"Inside predict, history is - {history}")
95
  #if RETRY_FLAG:
 
100
  max_length=max_length, top_p=top_p,
101
  temperature=temperature):
102
  chatbot[-1] = (parse_text(input), parse_text(response))
103
+ #print(f"Inside predict, chatbot2 is - {chatbot}")
104
+ #print(f"Inside predict, history2 is - {history}")
105
 
106
  yield chatbot, history, past_key_values
107