Merge remote-tracking branch 'hf/main'
Browse files- .streamlit/config.toml +1 -6
- README.md +1 -1
- hello_world.py +13 -0
- requirements.txt +2 -14
.streamlit/config.toml
CHANGED
|
@@ -1,9 +1,4 @@
|
|
| 1 |
[server]
|
| 2 |
-
port = 7860
|
| 3 |
-
address = "0.0.0.0"
|
| 4 |
headless = true
|
|
|
|
| 5 |
enableCORS = false
|
| 6 |
-
enableXsrfProtection = false
|
| 7 |
-
|
| 8 |
-
[browser]
|
| 9 |
-
gatherUsageStats = false
|
|
|
|
| 1 |
[server]
|
|
|
|
|
|
|
| 2 |
headless = true
|
| 3 |
+
port = 7860
|
| 4 |
enableCORS = false
|
|
|
|
|
|
|
|
|
|
|
|
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: hello_world.py
|
| 8 |
pinned: false
|
| 9 |
license: mit
|
| 10 |
short_description: Voice-enabled AI assistant with WebRTC integration
|
hello_world.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
import streamlit as st
|
| 3 |
+
import os
|
| 4 |
+
|
| 5 |
+
# Set Streamlit configuration for HuggingFace Spaces
|
| 6 |
+
if __name__ == "__main__":
|
| 7 |
+
# For local development, but HF Spaces should handle this automatically
|
| 8 |
+
pass
|
| 9 |
+
|
| 10 |
+
st.write("π€ Hello World - VoiceCal HF Spaces Test")
|
| 11 |
+
st.write("β
If this stays running without restarting, then the infrastructure is working.")
|
| 12 |
+
st.write(f"π Running on Python {os.sys.version}")
|
| 13 |
+
st.write(f"π§ Streamlit version: {st.__version__}")
|
requirements.txt
CHANGED
|
@@ -1,14 +1,2 @@
|
|
| 1 |
-
#
|
| 2 |
-
streamlit
|
| 3 |
-
fastapi>=0.104.0
|
| 4 |
-
uvicorn>=0.24.0
|
| 5 |
-
|
| 6 |
-
# WebSocket support
|
| 7 |
-
websockets>=12.0
|
| 8 |
-
|
| 9 |
-
# Basic utilities only
|
| 10 |
-
python-dotenv==1.0.0
|
| 11 |
-
python-dateutil==2.8.2
|
| 12 |
-
|
| 13 |
-
# For audio processing in WebRTC (minimal set)
|
| 14 |
-
numpy>=1.21.0
|
|
|
|
| 1 |
+
# Ultra-minimal for debugging restart loop
|
| 2 |
+
streamlit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|