Spaces:
Sleeping
Sleeping
Update app.py
Browse filesRESPONSE DEBUGGING FOR EMPTY REPLIES, EARLY STOPPING?
app.py
CHANGED
|
@@ -88,7 +88,9 @@ class ChatBot:
|
|
| 88 |
response = self.tokenizer.decode(
|
| 89 |
outputs[0][len(inputs.input_ids[0]) :], skip_special_tokens=True
|
| 90 |
)
|
|
|
|
| 91 |
response = THINK_TAG_PATTERN.sub("", response).strip()
|
|
|
|
| 92 |
|
| 93 |
return history + [(message, response)]
|
| 94 |
|
|
|
|
| 88 |
response = self.tokenizer.decode(
|
| 89 |
outputs[0][len(inputs.input_ids[0]) :], skip_special_tokens=True
|
| 90 |
)
|
| 91 |
+
print("------------------------------------------------------------------------------------RESPONSE------------------------------------------------------------------------------------")
|
| 92 |
response = THINK_TAG_PATTERN.sub("", response).strip()
|
| 93 |
+
|
| 94 |
|
| 95 |
return history + [(message, response)]
|
| 96 |
|