Spaces:
Paused
Paused
Commit
·
c0ef450
1
Parent(s):
649c4f6
added debugging code
Browse files
app.py
CHANGED
@@ -89,6 +89,7 @@ class RoleAgent:
|
|
89 |
pad_token_id=self.tokenizer.eos_token_id,
|
90 |
)
|
91 |
response = self.tokenizer.decode(outputs[0], skip_special_tokens=True)
|
|
|
92 |
|
93 |
# Extract only the new generated content after the prompt
|
94 |
prompt_length = len(prompt)
|
|
|
89 |
pad_token_id=self.tokenizer.eos_token_id,
|
90 |
)
|
91 |
response = self.tokenizer.decode(outputs[0], skip_special_tokens=True)
|
92 |
+
print(f"[DEBUG] Generated response: {response}")
|
93 |
|
94 |
# Extract only the new generated content after the prompt
|
95 |
prompt_length = len(prompt)
|