mzameshina commited on
Commit
4550c83
1 Parent(s): f572b04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -26
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)