Peter Michael Gits Claude commited on
Commit Β·
4a0bb42
1
Parent(s): ae83ce7
debug: Switch to ultra-minimal Streamlit test to isolate restart loop issue
Browse files- Create minimal_test.py with only basic Streamlit components
- Change app_file to minimal_test.py in README.md for HF Spaces
- Remove st.set_page_config() from main app temporarily
- Test if complex Streamlit components are causing restart loops
- Will identify root cause before re-adding functionality
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- README.md +1 -1
- minimal_test.py +12 -0
- streamlit_websocket_app.py +2 -7
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: π€π
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: streamlit
|
| 7 |
-
app_file:
|
| 8 |
pinned: false
|
| 9 |
license: mit
|
| 10 |
short_description: Voice-enabled AI assistant with WebRTC integration
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: streamlit
|
| 7 |
+
app_file: minimal_test.py
|
| 8 |
pinned: false
|
| 9 |
license: mit
|
| 10 |
short_description: Voice-enabled AI assistant with WebRTC integration
|
minimal_test.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""
|
| 3 |
+
Ultra-minimal Streamlit test to identify restart issue
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
import streamlit as st
|
| 7 |
+
|
| 8 |
+
st.title("π€ Minimal VoiceCal Test")
|
| 9 |
+
st.write("If you can see this, basic Streamlit is working!")
|
| 10 |
+
st.success("β
Test successful")
|
| 11 |
+
|
| 12 |
+
# Nothing else - just basic Streamlit
|
streamlit_websocket_app.py
CHANGED
|
@@ -1,17 +1,12 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
Streamlit app with embedded WebSocket server for VoiceCal WebRTC
|
| 4 |
-
|
| 5 |
"""
|
| 6 |
|
| 7 |
import streamlit as st
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
st.set_page_config(
|
| 11 |
-
page_title="VoiceCal - Voice Assistant",
|
| 12 |
-
page_icon="π€",
|
| 13 |
-
layout="wide"
|
| 14 |
-
)
|
| 15 |
|
| 16 |
def main():
|
| 17 |
st.title("π€π
VoiceCal - Voice-Enabled AI Assistant")
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
Streamlit app with embedded WebSocket server for VoiceCal WebRTC
|
| 4 |
+
Ultra-simplified version for debugging startup issues
|
| 5 |
"""
|
| 6 |
|
| 7 |
import streamlit as st
|
| 8 |
|
| 9 |
+
# Removed page config temporarily to test if this causes issues
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
def main():
|
| 12 |
st.title("π€π
VoiceCal - Voice-Enabled AI Assistant")
|