Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def scrub_file(filepath, progress=gr.Progress()):
|
|
21 |
|
22 |
# Overwrite the original file with pii replaced lines
|
23 |
with open(filepath, 'w', encoding='utf-8') as file:
|
24 |
-
for line in
|
25 |
file.write(line + '\n') # Add '\n' to keep the file structure
|
26 |
|
27 |
# Extract the filename for the download button label
|
@@ -47,4 +47,4 @@ with gr.Blocks() as demo:
|
|
47 |
|
48 |
|
49 |
if __name__ == "__main__":
|
50 |
-
demo.launch()
|
|
|
21 |
|
22 |
# Overwrite the original file with pii replaced lines
|
23 |
with open(filepath, 'w', encoding='utf-8') as file:
|
24 |
+
for line in pii_lines:
|
25 |
file.write(line + '\n') # Add '\n' to keep the file structure
|
26 |
|
27 |
# Extract the filename for the download button label
|
|
|
47 |
|
48 |
|
49 |
if __name__ == "__main__":
|
50 |
+
demo.queue().launch()
|