Spaces:
Runtime error
Runtime error
Royrotem100
commited on
Commit
•
f00fb62
1
Parent(s):
072d5f2
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def predict():
|
|
50 |
formatted_text = f"<s>[INST] {input_text} [/INST]"
|
51 |
|
52 |
# Tokenize the input
|
53 |
-
inputs = tokenizer(formatted_text, return_tensors='pt', padding=True, truncation=True)
|
54 |
|
55 |
# Generate the output
|
56 |
outputs = model.generate(
|
|
|
50 |
formatted_text = f"<s>[INST] {input_text} [/INST]"
|
51 |
|
52 |
# Tokenize the input
|
53 |
+
inputs = tokenizer(formatted_text, return_tensors='pt', padding=True, truncation=True, max_length=1024)
|
54 |
|
55 |
# Generate the output
|
56 |
outputs = model.generate(
|