legacy107 commited on
Commit
9265710
1 Parent(s): b777d77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def generate_answer(question, context, ground_truth):
65
 
66
  # Generate the answer
67
  with torch.no_grad():
68
- generated_ids = model.generate(input_ids, max_new_tokens=max_target_length)
69
 
70
  # Decode and return the generated answer
71
  generated_answer = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
 
65
 
66
  # Generate the answer
67
  with torch.no_grad():
68
+ generated_ids = model.generate(input_ids=input_ids, max_new_tokens=max_target_length)
69
 
70
  # Decode and return the generated answer
71
  generated_answer = tokenizer.decode(generated_ids[0], skip_special_tokens=True)