Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,8 +18,8 @@ with st.spinner("Generating Patent Summary.."):
|
|
| 18 |
if button and sentence:
|
| 19 |
#chunks = generate_chunks(sentence)
|
| 20 |
res = summarize(sentence,
|
| 21 |
-
max_length=
|
| 22 |
-
min_length=
|
| 23 |
truncation=True,
|
| 24 |
#do_sample=do_sample
|
| 25 |
)
|
|
|
|
| 18 |
if button and sentence:
|
| 19 |
#chunks = generate_chunks(sentence)
|
| 20 |
res = summarize(sentence,
|
| 21 |
+
max_length=512,
|
| 22 |
+
min_length=200,
|
| 23 |
truncation=True,
|
| 24 |
#do_sample=do_sample
|
| 25 |
)
|