zakerytclarke commited on
Commit
b8ce407
·
verified ·
1 Parent(s): e972582

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def query_teapot(prompt, context, user_input):
68
  inputs = tokenizer(input_text, return_tensors="pt")
69
  input_length = inputs["input_ids"].shape[1]
70
 
71
- output = model.generate(**inputs, max_new_tokens=max_new_tokens)
72
 
73
  output_text = tokenizer.decode(output[0], skip_special_tokens=True)
74
  total_length = output.shape[1] # Includes both input and output tokens
 
68
  inputs = tokenizer(input_text, return_tensors="pt")
69
  input_length = inputs["input_ids"].shape[1]
70
 
71
+ output = model.generate(**inputs, max_new_tokens=512)
72
 
73
  output_text = tokenizer.decode(output[0], skip_special_tokens=True)
74
  total_length = output.shape[1] # Includes both input and output tokens