Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|