ABDALLALSWAITI commited on
Commit
1a525d7
Β·
verified Β·
1 Parent(s): 17b3af8

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +8 -11
start.sh CHANGED
@@ -1,14 +1,11 @@
1
  #!/bin/bash
2
 
3
- echo "πŸš€ Starting HTML to PDF Converter API"
4
- echo "πŸ“‘ Mode: FastAPI Only"
5
- echo "🌐 Port: 7860"
6
- echo ""
7
 
8
- # Run FastAPI with Uvicorn
9
- exec uvicorn api:app \
10
- --host 0.0.0.0 \
11
- --port 7860 \
12
- --workers 1 \
13
- --timeout-keep-alive 60 \
14
- --log-level info
 
1
  #!/bin/bash
2
 
3
+ echo "πŸš€ Starting HTML to PDF Converter - Streamlit Mode"
 
 
 
4
 
5
+ # Run Streamlit on port 7860 (Hugging Face default)
6
+ streamlit run src/streamlit_app.py \
7
+ --server.port=7860 \
8
+ --server.address=0.0.0.0 \
9
+ --server.headless=true \
10
+ --server.fileWatcherType=none \
11
+ --browser.gatherUsageStats=false