Spaces:
Runtime error
Runtime error
minor change
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ model = AutoModelForSeq2SeqLM.from_pretrained("fabiochiu/t5-small-medium-title-g
|
|
9 |
|
10 |
text = st.text_area('Enter an abstract to summerize, i.e. generate a title!')
|
11 |
|
|
|
12 |
|
13 |
if text:
|
14 |
inputs = ["summarize: " + text]
|
|
|
9 |
|
10 |
text = st.text_area('Enter an abstract to summerize, i.e. generate a title!')
|
11 |
|
12 |
+
max_input_length = 512
|
13 |
|
14 |
if text:
|
15 |
inputs = ["summarize: " + text]
|