Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,5 +41,8 @@ if text:
|
|
41 |
num_beams=4,
|
42 |
early_stopping=True,
|
43 |
repetition_penalty=2.0)
|
44 |
-
|
|
|
|
|
|
|
45 |
st.write(summ)
|
|
|
41 |
num_beams=4,
|
42 |
early_stopping=True,
|
43 |
repetition_penalty=2.0)
|
44 |
+
output = tokenizer.decode(corrected_ids.squeeze().tolist(), skip_special_tokens=True)
|
45 |
+
if output == '':
|
46 |
+
output = 'Nothing generated...TT Please try again with different text!'
|
47 |
+
|
48 |
st.write(summ)
|