Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ with gr.Blocks() as demo:
|
|
34 |
gr.Markdown("First upload a file and and then you'll be able download it (but only once!)")
|
35 |
gr.Markdown("PII Anonymized:"+pii_anonymizer.anonymize_text_including_proper_nouns_and_addresses("Hello Kripa"))
|
36 |
with gr.Row():
|
37 |
-
u = gr.UploadButton("Upload a file", file_count="single",
|
38 |
d = gr.DownloadButton("Download the file", visible=False)
|
39 |
|
40 |
#u.upload(upload_file, u, [u, d])
|
|
|
34 |
gr.Markdown("First upload a file and and then you'll be able download it (but only once!)")
|
35 |
gr.Markdown("PII Anonymized:"+pii_anonymizer.anonymize_text_including_proper_nouns_and_addresses("Hello Kripa"))
|
36 |
with gr.Row():
|
37 |
+
u = gr.UploadButton("Upload a file", file_count="single", file_types=["text"])
|
38 |
d = gr.DownloadButton("Download the file", visible=False)
|
39 |
|
40 |
#u.upload(upload_file, u, [u, d])
|