voiceCal / test_streamlit_simple.py
Peter Michael Gits
debug: Simplify VoiceCal to isolate restart issue cause
ae83ce7
#!/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()