import gradio as gr # The 'Brain' of your demo def analyze_statement(text): if "open" in text.lower() and "privacy" in text.lower(): return "✅ Excellent: This statement shows high ethical commitment." elif "data" in text.lower(): return "🟡 Moderate: Mentions data but lacks transparency details." else: return "🔴 Low: This statement appears opaque or vague." # The 'Face' of your demo (The UI) interface = gr.Interface( fn=analyze_statement, inputs=gr.Textbox(lines=2, placeholder="Enter a mission statement here..."), outputs="text", title="OpenEthos Transparency Auditor", description="Helping researchers verify the ethical clarity of AI organizations." ) interface.launch()