Spaces:
Paused
Paused
Commit
·
70bea4d
1
Parent(s):
fe61d2d
seeing where error is
Browse files
app.py
CHANGED
@@ -51,6 +51,7 @@ class RoleAgent:
|
|
51 |
f"Input: {input_text}\n"
|
52 |
f"Output:"
|
53 |
)
|
|
|
54 |
encoding = tokenizer(prompt, return_tensors="pt")
|
55 |
inputs = {k: v.to(model.device) for k, v in encoding.items()}
|
56 |
|
|
|
51 |
f"Input: {input_text}\n"
|
52 |
f"Output:"
|
53 |
)
|
54 |
+
print("tokenizer is:", tokenizer, "— type:", type(tokenizer))
|
55 |
encoding = tokenizer(prompt, return_tensors="pt")
|
56 |
inputs = {k: v.to(model.device) for k, v in encoding.items()}
|
57 |
|