Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,8 @@ def main(content, classify_source=False):
|
|
60 |
if classify_source:
|
61 |
source = classify(source_model, source_tokenizer, content, title)
|
62 |
output += f"Source: {source}\n\n"
|
|
|
|
|
63 |
summary = generate(summary_model, summary_tokenizer, content, prefix="")
|
64 |
output += f"Summary: {summary}"
|
65 |
return output
|
|
|
60 |
if classify_source:
|
61 |
source = classify(source_model, source_tokenizer, content, title)
|
62 |
output += f"Source: {source}\n\n"
|
63 |
+
else:
|
64 |
+
output += "\n"
|
65 |
summary = generate(summary_model, summary_tokenizer, content, prefix="")
|
66 |
output += f"Summary: {summary}"
|
67 |
return output
|