Spaces:
Sleeping
Sleeping
chore: remove accordion and replace it by an interactive text box
Browse files
app.py
CHANGED
@@ -123,24 +123,26 @@ with demo:
|
|
123 |
"""
|
124 |
)
|
125 |
|
126 |
-
|
127 |
with gr.Accordion("What is Encrypted Anonymization?", open=False):
|
128 |
gr.Markdown(
|
129 |
"""
|
130 |
-
Encrypted Anonymization leverages Fully Homomorphic Encryption (FHE) to
|
|
|
|
|
|
|
131 |
"""
|
132 |
)
|
133 |
|
134 |
-
|
135 |
-
with gr.Accordion("Original Document", open=True):
|
136 |
-
gr.Markdown(original_document)
|
137 |
-
|
138 |
-
with gr.Accordion("Anonymized Document", open=True):
|
139 |
-
gr.Markdown(anonymized_document)
|
140 |
-
|
141 |
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
########################## User Query Part ##########################
|
|
|
144 |
with gr.Row():
|
145 |
input_text = gr.Textbox(value="Who lives in Maine?", label="User query", interactive=True)
|
146 |
|
|
|
123 |
"""
|
124 |
)
|
125 |
|
|
|
126 |
with gr.Accordion("What is Encrypted Anonymization?", open=False):
|
127 |
gr.Markdown(
|
128 |
"""
|
129 |
+
Encrypted Anonymization leverages Fully Homomorphic Encryption (FHE) to
|
130 |
+
protect sensitive information during data processing. This approach allows for the
|
131 |
+
anonymization of text data, such as personal identifiers, while ensuring that the data
|
132 |
+
remains encrypted throughout the entire process.
|
133 |
"""
|
134 |
)
|
135 |
|
136 |
+
########################## Main document Part ##########################
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
|
138 |
+
with gr.Row():
|
139 |
+
with gr.Column():
|
140 |
+
original_doc_box = gr.Textbox(label="Original Document:", value=original_document, interactive=True)
|
141 |
+
with gr.Column():
|
142 |
+
anonymized_doc_box = gr.Textbox(label="Anonymized Document:", value=anonymized_document, interactive=False)
|
143 |
|
144 |
########################## User Query Part ##########################
|
145 |
+
|
146 |
with gr.Row():
|
147 |
input_text = gr.Textbox(value="Who lives in Maine?", label="User query", interactive=True)
|
148 |
|