Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def title_generation(input: str):
|
|
38 |
|
39 |
|
40 |
def generate(task: str, input: str):
|
41 |
-
if len(input)
|
42 |
if task == SUMMARIZATION:
|
43 |
return summarization(input)
|
44 |
elif task == TITLE_GENERATION:
|
|
|
38 |
|
39 |
|
40 |
def generate(task: str, input: str):
|
41 |
+
if len(input) > 20:
|
42 |
if task == SUMMARIZATION:
|
43 |
return summarization(input)
|
44 |
elif task == TITLE_GENERATION:
|