Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ Does the human question violate the above policy? Your answer must start with 'Y
|
|
39 |
|
40 |
def verificar_politica(message, policy):
|
41 |
prompt = generar_prompt(message, policy)
|
42 |
-
inputs = tokenizer(prompt, return_tensors="pt")
|
43 |
|
44 |
with torch.no_grad():
|
45 |
outputs = model(**inputs)
|
|
|
39 |
|
40 |
def verificar_politica(message, policy):
|
41 |
prompt = generar_prompt(message, policy)
|
42 |
+
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
|
43 |
|
44 |
with torch.no_grad():
|
45 |
outputs = model(**inputs)
|