Spaces:
Sleeping
Sleeping
mzameshina
commited on
Commit
•
cb92c24
1
Parent(s):
f572b04
Update app.py (#1)
Browse files- Update app.py (4550c831ca9b8c25a1e92b160d2abbc13b9dd1b5)
app.py
CHANGED
@@ -671,31 +671,5 @@ with demo:
|
|
671 |
|
672 |
########################## ChatGpt Part ##########################
|
673 |
|
674 |
-
gr.Markdown("<hr />")
|
675 |
-
gr.Markdown("## Step 4: Send anonymized prompt to ChatGPT")
|
676 |
-
gr.Markdown(
|
677 |
-
"""After securely anonymizing the query with FHE,
|
678 |
-
you can forward it to ChatGPT without having any concern about information leakage."""
|
679 |
-
)
|
680 |
-
|
681 |
-
chatgpt_button = gr.Button("Query ChatGPT")
|
682 |
-
|
683 |
-
with gr.Row():
|
684 |
-
chatgpt_response_anonymized = gr.Textbox(label="ChatGPT's anonymized response:", lines=5)
|
685 |
-
chatgpt_response_deanonymized = gr.Textbox(
|
686 |
-
label="ChatGPT's non-anonymized response:", lines=5
|
687 |
-
)
|
688 |
-
|
689 |
-
chatgpt_button.click(
|
690 |
-
query_chatgpt_fn,
|
691 |
-
inputs=[anonymized_query_output, anonymized_doc_output],
|
692 |
-
outputs=[chatgpt_response_anonymized, chatgpt_response_deanonymized],
|
693 |
-
)
|
694 |
-
|
695 |
-
gr.Markdown(
|
696 |
-
"""**Please note**: As this space is intended solely for demonstration purposes, some
|
697 |
-
private information may be missed during by the anonymization algorithm. Please validate the
|
698 |
-
following query before sending it to ChatGPT."""
|
699 |
-
)
|
700 |
# Launch the app
|
701 |
demo.launch(share=False)
|
|
|
671 |
|
672 |
########################## ChatGpt Part ##########################
|
673 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
674 |
# Launch the app
|
675 |
demo.launch(share=False)
|