import gradio as gr from blindbox.requests import SecureSession DEMO_SERVER = "4.208.9.167:80" bullets = "
Features coming soon:
This is our demo for our article on deploying code generation LLM models with BlindBox. The user input is protected during computation.
") gr.Markdown("You can see how we deployed the model in the integration section of our documentation!
") gr.Markdown("⚠️ BlindBox is still under development. Do not test with production data!
") gr.Markdown(value=bullets) _, colum_2, _ = gr.Column(scale=1), gr.Column(scale=6), gr.Column(scale=1) with colum_2: prompt = gr.Code(lines=3, language="python", label="Input code", value="def hello_name(name):") with gr.Accordion("Advanced settings", open=False): server = gr.Radio( ["Authentic confidential VM server", "Non-confidential VM server"], label="Test connections to secure and insecure servers" ) trigger = gr.Button(label="Run query") with gr.Column(): output = gr.Textbox(placeholder="Output", label="Output") trigger.click(fn=run_query, inputs=[server, prompt], outputs=output) gr.HTML(label="Contact", value="