Add file IO
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def modernisa(lines=None, file_obj=None):
|
|
27 |
output_file = "modernized.txt"
|
28 |
with open(output_file, "w") as output:
|
29 |
output.write("\n".join(generated_text))
|
30 |
-
return "<br/>".join(generated_text),
|
31 |
|
32 |
|
33 |
samples = [
|
|
|
27 |
output_file = "modernized.txt"
|
28 |
with open(output_file, "w") as output:
|
29 |
output.write("\n".join(generated_text))
|
30 |
+
return "<br/>".join(generated_text), output_file
|
31 |
|
32 |
|
33 |
samples = [
|