Spaces:
Sleeping
Sleeping
| 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() |