Spaces:
Running
Running
Adityahulk
commited on
Commit
·
7fe8bc4
1
Parent(s):
a3cc1dc
adding streamlit config for huugingface deployment
Browse files- .streamlit/config.toml +17 -0
- start.sh +13 -3
.streamlit/config.toml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[server]
|
| 2 |
+
port = 7860
|
| 3 |
+
address = "0.0.0.0"
|
| 4 |
+
enableCORS = true
|
| 5 |
+
enableXsrfProtection = false
|
| 6 |
+
maxUploadSize = 50
|
| 7 |
+
fileWatcherType = "none"
|
| 8 |
+
|
| 9 |
+
[browser]
|
| 10 |
+
gatherUsageStats = false
|
| 11 |
+
|
| 12 |
+
[theme]
|
| 13 |
+
# Keep the dark theme consistent
|
| 14 |
+
primaryColor = "#818cf8"
|
| 15 |
+
backgroundColor = "#0a0a1a"
|
| 16 |
+
secondaryBackgroundColor = "#14142d"
|
| 17 |
+
textColor = "#e0e0ff"
|
start.sh
CHANGED
|
@@ -20,10 +20,20 @@ mkdir -p media/voiceover/elevenlabs
|
|
| 20 |
mkdir -p media/voiceover/gtts
|
| 21 |
mkdir -p media/videos
|
| 22 |
|
| 23 |
-
# Start Streamlit
|
| 24 |
-
#
|
|
|
|
| 25 |
echo "🎬 Starting Vidsimplify in Direct Mode..."
|
| 26 |
echo " Port: 7860"
|
| 27 |
echo " Mode: Direct (no API server needed)"
|
| 28 |
echo ""
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
mkdir -p media/voiceover/gtts
|
| 21 |
mkdir -p media/videos
|
| 22 |
|
| 23 |
+
# Start Streamlit with Hugging Face-compatible settings
|
| 24 |
+
# - Port 7860 is required by Hugging Face Spaces
|
| 25 |
+
# - CORS and file upload settings for proper functionality
|
| 26 |
echo "🎬 Starting Vidsimplify in Direct Mode..."
|
| 27 |
echo " Port: 7860"
|
| 28 |
echo " Mode: Direct (no API server needed)"
|
| 29 |
echo ""
|
| 30 |
+
|
| 31 |
+
streamlit run streamlit_app.py \
|
| 32 |
+
--server.port 7860 \
|
| 33 |
+
--server.address 0.0.0.0 \
|
| 34 |
+
--server.enableCORS true \
|
| 35 |
+
--server.enableXsrfProtection false \
|
| 36 |
+
--server.maxUploadSize 50 \
|
| 37 |
+
--server.fileWatcherType none \
|
| 38 |
+
--browser.gatherUsageStats false
|
| 39 |
+
|