| import gradio as gr | |
| from backend import generate_large_prime | |
| def run_max(a, iterations, message): | |
| return generate_large_prime(a, iterations, message) | |
| iface = gr.Interface( | |
| fn=run_max, | |
| inputs=["text", "text", "text"], | |
| outputs=["text", "text", "text"], | |
| title="Test MAX Cryptography", | |
| description="Try the MAX cryptographic system in action!", | |
| theme="light" | |
| ) | |
| iface.launch(share=False) | |