JustKiddo commited on
Commit
0bb37e7
1 Parent(s): 9e0b73b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=100):
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