Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def load_model():
|
|
71 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
72 |
return model, tokenizer
|
73 |
|
74 |
-
def generate_response(prompt, model, tokenizer, max_length=
|
75 |
# Prepare input
|
76 |
inputs = tokenizer(prompt, return_tensors="pt", padding=True, truncation=True)
|
77 |
|
|
|
71 |
model = AutoModelForCausalLM.from_pretrained(model_name)
|
72 |
return model, tokenizer
|
73 |
|
74 |
+
def generate_response(prompt, model, tokenizer, max_length=4169):
|
75 |
# Prepare input
|
76 |
inputs = tokenizer(prompt, return_tensors="pt", padding=True, truncation=True)
|
77 |
|