diff --git "a/app.py" "b/app.py" --- "a/app.py" +++ "b/app.py" @@ -3,11 +3,11 @@ # Engine: Groq (free) + SymPy (verified computation) # ═══════════════════════════════════════════════════════════════════ -# ── Imports (order matters: stdlib/third-party before sympy, re LAST) ── +# ── Runtime imports ─────────────────────────────────────────────────── import streamlit as st import os -import requests -import json as _json +import uuid as _uuid +from html import escape as _escape_html import sympy as sp from sympy import ( symbols, diff, integrate, limit, solve, @@ -25,28 +25,30 @@ matplotlib.use('Agg') # non-interactive backend — required on HuggingFace Spa import matplotlib.pyplot as plt import numpy as np +from config import settings +from sympy_engine import run_sympy +from ai import ask_ai, ask_gemini_vision, handle_uploaded_file + # ── Page config ────────────────────────────────────────────────────── st.set_page_config( page_title="Saad.AI", page_icon="🧠", - layout="centered", + layout="wide", initial_sidebar_state="expanded" ) # ── CSS — ChatGPT-style, compact font, clean dark theme ───────────── st.markdown("""