Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def load_qa_model():
|
|
48 |
"text-generation",
|
49 |
model=model,
|
50 |
tokenizer=tokenizer,
|
51 |
-
max_new_tokens=
|
52 |
)
|
53 |
|
54 |
return qa_pipeline
|
|
|
48 |
"text-generation",
|
49 |
model=model,
|
50 |
tokenizer=tokenizer,
|
51 |
+
max_new_tokens=1024, # Limit generation as needed
|
52 |
)
|
53 |
|
54 |
return qa_pipeline
|