| #!/usr/bin/env python3 | |
| """ | |
| Simple test Streamlit app to verify basic functionality | |
| """ | |
| import streamlit as st | |
| # Configure Streamlit page | |
| st.set_page_config( | |
| page_title="VoiceCal Test", | |
| page_icon="π€", | |
| layout="wide" | |
| ) | |
| def main(): | |
| st.title("π€π VoiceCal - Voice-Enabled AI Assistant (Test)") | |
| st.markdown("**Testing basic Streamlit functionality**") | |
| # Simple content without JavaScript | |
| st.success("β Basic Streamlit is working!") | |
| st.markdown("### Service Status") | |
| col1, col2 = st.columns(2) | |
| with col1: | |
| st.metric("π€ VoiceCal", "Online", "β ") | |
| st.metric("π§ STT Service", "Ready", "β ") | |
| with col2: | |
| st.metric("π TTS Service", "Ready", "β ") | |
| st.metric("π± Pattern", "unmute.sh", "π―") | |
| st.markdown("---") | |
| st.markdown("π― **Ready for WebSocket integration testing**") | |
| # Add simple HTML without complex JavaScript | |
| simple_html = """ | |
| <div style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; border-radius: 10px; margin: 20px 0;"> | |
| <h3 style="color: white; margin-top: 0;">π€ Simple Voice Interface Test</h3> | |
| <p style="color: white;">JavaScript functionality will be added after basic test passes.</p> | |
| </div> | |
| """ | |
| st.components.v1.html(simple_html, height=150) | |
| if __name__ == "__main__": | |
| main() |