Spaces:
Sleeping
Sleeping
Update main.py
Browse files31 unmodified lines32333435363738321 unmodified lines360361362363364365366367368369370110 unmodified lines48148248348448548648748848949049131 unmodified lines# ββ App Setup βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββapp = FastAPI(title="Intern Problem-Solving API",description="Multi-agent system: Analyst β Root Cause β Solutions β Action Plan",version="1.0.0",)321 unmodified linesfontSize=8, fontName="Helvetica", textColor=GRAY, alignment=1)SECTIONS = [("Problem Analyst", analysis.problem_statement),("Root Cause Analyst", analysis.root_causes),("Solutions", analysis.solutions),("Action Plan", analysis.action_plan),("Thinking Coach", analysis.thinking_feedback),]def render_block(md_text: str) -> list:110 unmodified linesdef event_stream():agents = [("analyst", AGENT_ANALYST, "Problem Analyst"),("root_cause", AGENT_ROOT_CAUSE, "Root Cause Analyst"),("solutions", AGENT_SOLUTIONS, "Solution Brainstorm"),("action_plan", AGENT_ACTION_PLANNER, "Action Planner"),("thinking", AGENT_THINKING_COACH, "Thinking Coach"),]context = {31 unmodified lines32333435363738321 unmodified lines360361362363364365366367368369370110 unmodified lines48148248348448548648748848949049131 unmodified lines# ββ App Setup βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββapp = FastAPI(title="Intern Problem-Solving API",description="5-step pipeline: Analysis β Root Cause β Solutions β Action Plan β Reflection",version="1.0.0",)321 unmodified linesfontSize=8, fontName="Helvetica", textColor=GRAY, alignment=1)SECTIONS = [("Problem Analysis", analysis.problem_statement),("Root Cause", analysis.root_causes),("Solutions", analysis.solutions),("Action Plan", analysis.action_plan),("Reflection", analysis.thinking_feedback),]def render_block(md_text: str) -> list:110 unmodified linesdef event_stream():agents = [("analyst", AGENT_ANALYST, "Problem Analysis"),("root_cause", AGENT_ROOT_CAUSE, "Root Cause"),("solutions", AGENT_SOLUTIONS, "Solutions"),("action_plan", AGENT_ACTION_PLANNER, "Action Plan"),("thinking", AGENT_THINKING_COACH, "Reflection"),]context = {
main.py+9-9