Commit ·
2087aab
1
Parent(s): 9bbeadf
chore: fix UI markdown and enable clean old keys
Browse files49 unmodified lines505152535455187 unmodified lines24324424524624724824925025125225325449 unmodified linesdef keygen():print("Initializing FHEModelClient...")# Let's create a user_id187 unmodified lines"Enter a sensitive text message you received and would like to do sentiment analysis on (ideas: the last text message of your boss.... or lover).")text = gr.Textbox(label="Enter a message:", value="I really like your work recently")b_encode_quantize_text = gr.Button("Encode, quantize and encrypt the text with transformer vectorizer, and send to server")size_text = gr.Number(label="Size of the text (in bytes):", value="0", interactive=False)gr.Markdown("# Step 3: Encode the message with the private key")with gr.Row():encoding = gr.Textbox(label="Transformer representation:",49 unmodified lines505152535455565758187 unmodified lines24624724824925025125225325425525625725849 unmodified linesdef keygen():# Clean tmp directory if neededclean_tmp_directory()print("Initializing FHEModelClient...")# Let's create a user_id187 unmodified lines"Enter a sensitive text message you received and would like to do sentiment analysis on (ideas: the last text message of your boss.... or lover).")text = gr.Textbox(label="Enter a message:", value="I really like your work recently")gr.Markdown("# Step 3: Encode the message with the private key")b_encode_quantize_text = gr.Button("Encode, quantize and encrypt the text with transformer vectorizer, and send to server")size_text = gr.Number(label="Size of the text (in bytes):", value="0", interactive=False)with gr.Row():encoding = gr.Textbox(label="Transformer representation:",
app.py+5-1