Spaces:
Running
Running
Session-recovery propagated from socratic: hidden gr.Textbox (#recovery-payload) + Gradio .then(js=...) chains write/clear localStorage; on_submit_initial / on_end_session yield JSON events on their CONFIRM yields (includes ENFORCE_END_SESSION_GATE toast path). RECOVERY_HEAD adds modal styling + window.__SOC_RECOVERY helpers; storage key socratic_frame_session_v1. on_recover_session restricts HF file lookup to this Space's mode_prefix (v5-HOT/socratic_frame/) because the dataset AE-Talk-bot/log-socratic is shared with socratic and a loose match would risk cross-condition recovery. TUTORIAL_HEAD walkthrough guard early-returns when localStorage carries an unfinished session. SessionLogger.from_dict restores dominant_framework + argument_submitted_at.
7edb5d1 verified A newer version of the Gradio SDK is available: 6.22.0
AI Ethics Discussion Frameworks
Three families of ethical analysis used as the structural lens for the per-session perfect answer. The generator picks whichever framework or stakeholder lens the participant's argument most invites; it does not need to cover every bullet in every framework.
1) Consequence-related probes
- Consider potential consequences, both benefits and harms.
- Examine who will be influenced and how (distribution across stakeholders). Who afford the costs, who get the benefits.
- Assess severity, likelihood, and reversibility of outcomes.
- Distinguish short-term vs long-term consequences.
- Identify trade-offs between competing outcomes.
- Reversible vs. irreversible?
2) Duty- and rights-based reasoning
- Consider whether any rights, autonomy, or consent are affected.
- Examine fairness and potential bias.
- Reflect on rules, obligations, or ethical constraints that should not be violated.
- Consider whether individuals are treated as ends or merely as means.
3) Responsibility- and character-oriented reasoning
- Consider responsibilities of individuals and institutions involved.
- Reflect on accountability if things go wrong.
- Examine whether the use of the system reflects good judgment or ethical integrity.
- Consider trust, professionalism, and societal expectations.