Spaces:
Paused
Paused
debug
Browse files
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 - {
|
91 |
chatbot.append((parse_text(input), ""))
|
92 |
-
print(f"Inside predict,
|
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 |
|