Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ Sign Language Translator for converting sentences to Gloss. Glosses are written
|
|
33 |
"""
|
34 |
|
35 |
def translate_to_gloss(input_text):
|
36 |
-
inputs = tokenizer([tinyllama_prompt.format(input_text)], return_tensors="pt")
|
37 |
with torch.no_grad():
|
38 |
outputs = peft_model.generate(**inputs, max_new_tokens=64, use_cache=True)
|
39 |
decoded_output = tokenizer.batch_decode(outputs)[0]
|
|
|
33 |
"""
|
34 |
|
35 |
def translate_to_gloss(input_text):
|
36 |
+
inputs = tokenizer([tinyllama_prompt.format(input_text)], return_tensors="pt")
|
37 |
with torch.no_grad():
|
38 |
outputs = peft_model.generate(**inputs, max_new_tokens=64, use_cache=True)
|
39 |
decoded_output = tokenizer.batch_decode(outputs)[0]
|