Update src/streamlit_app.py
Browse files10 unmodified lines11121314151617176 unmodified lines19419519619719819920010 unmodified lines# Initialize Gemini API (you'll need to add your own API key)try:genai.configure(api_key=st.secrets["GOOGLE_API_KEY"])except:st.sidebar.warning("Gemini API not configured. Chat functionality will be limited.")176 unmodified lines# Generate response (simulated for now - you'd integrate with Gemini API)try:model = genai.GenerativeModel('gemini-pro')response = model.generate_content(f"Explain this concept about number systems in simple terms for students: {prompt}")response_text = response.textexcept:10 unmodified lines11121314151617176 unmodified lines19419519619719819920010 unmodified lines# Initialize Gemini API (you'll need to add your own API key)try:genai.configure(api_key=st.secrets["AIzaSyCWxM6Ic9zs-hZiovnMU8a4UJko7ObqPqU"])except:st.sidebar.warning("Gemini API not configured. Chat functionality will be limited.")176 unmodified lines# Generate response (simulated for now - you'd integrate with Gemini API)try:model = genai.GenerativeModel('gemini-2.0-flash')response = model.generate_content(f"Explain this concept about number systems in simple terms for students: {prompt}")response_text = response.textexcept:
src/streamlit_app.py+2-2