Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ model = BartForConditionalGeneration.from_pretrained('djsull/aha-kobart-summariz
|
|
13 |
def predict(text):
|
14 |
text = text
|
15 |
if len(text) < 50:
|
16 |
-
error =
|
17 |
return error
|
18 |
text = re.sub('\n[0-9].', '\n', text)
|
19 |
text = re.sub('\n-.', '\n', text)
|
|
|
13 |
def predict(text):
|
14 |
text = text
|
15 |
if len(text) < 50:
|
16 |
+
error = "query too short"
|
17 |
return error
|
18 |
text = re.sub('\n[0-9].', '\n', text)
|
19 |
text = re.sub('\n-.', '\n', text)
|