Spaces:
Paused
Paused
Commit
·
f44fff8
1
Parent(s):
cb96fe6
one more
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ Please generate a structured SOAP (Subjective, Objective, Assessment, Plan) note
|
|
48 |
|
49 |
generate_ids = model.generate(
|
50 |
inputs["input_ids"],
|
51 |
-
attention_mask=inputs
|
52 |
max_length=2048,
|
53 |
num_beams=5,
|
54 |
no_repeat_ngram_size=2,
|
|
|
48 |
|
49 |
generate_ids = model.generate(
|
50 |
inputs["input_ids"],
|
51 |
+
attention_mask=inputs["attention_mask"], # Explicitly pass attention mask
|
52 |
max_length=2048,
|
53 |
num_beams=5,
|
54 |
no_repeat_ngram_size=2,
|