Famwin's picture
Initial commit for LanguageSoul System v2.5 — EchoLoop × PersonaStack prototype
a48415f verified
Raw
History Blame
813 Bytes
import gradio as gr
# Simple simulation of EchoLoop × PersonaStack
persona_state = {"current": "Calm Analyst"}
def language_soul_response(user_input, echo_feedback, switch_persona):
if switch_persona:
persona_state["current"] = switch_persona
response = f"[{persona_state['current']}] You said: '{user_input}'"
if echo_feedback:
response += f" | Reflecting on echo: '{echo_feedback}'"
return response
iface = gr.Interface(
fn=language_soul_response,
inputs=[
gr.Textbox(label="User Input"),
gr.Textbox(label="Echo Feedback (Optional)"),
gr.Textbox(label="Switch Persona (Optional)")
],
outputs="text",
title="LanguageSoul v2.5 Demo",
description="EchoLoop × PersonaStack Module Simulation (Full Text Version)"
)
iface.launch()