joelgilbert/NL2SQL
0
1"""2Minimal test app to verify Hugging Face Spaces is working3"""4 5import streamlit as st6 7st.set_page_config(page_title="NL2SQL Test", page_icon="✅")8 9st.title("✅ Hugging Face Spaces Test")10st.success("If you see this, the basic Streamlit deployment is working!")11 12st.write("Testing environment variables:")13 14import os15 16# Check if secrets are loaded17secrets_status = {18 "NEON_READONLY_CONNECTION_STRING": "✅" if os.getenv("NEON_READONLY_CONNECTION_STRING") else "❌",19 "GROQ_API_KEY": "✅" if os.getenv("GROQ_API_KEY") else "❌",20 "UPSTASH_VECTOR_URL": "✅" if os.getenv("UPSTASH_VECTOR_URL") else "❌",21}22 23for name, status in secrets_status.items():24 st.write(f"{status} {name}")25 26st.divider()27 28st.info("If all secrets show ✅, the main app should work. Click 'Files and versions' to restore app.py")29 