rahul7star commited on
Commit
94c92f7
·
verified ·
1 Parent(s): 13cf1f1

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +8 -7
entrypoint.sh CHANGED
@@ -3,16 +3,17 @@
3
  # Start Ollama in background
4
  echo "Starting Ollama..."
5
  ollama serve &
6
- sleep 5
7
 
8
- # Pull default model
9
- echo "Pulling model: ${MODEL_NAME:-qwen2.5:0.5b}"
10
- ollama pull ${MODEL_NAME:-qwen2.5:0.5b}
11
 
12
- # Create data directory
13
  mkdir -p /workspace/pencil_data
14
 
15
- # Start Streamlit app
16
  echo "Starting Streamlit interface..."
17
  cd /workspace
18
- streamlit run app.py --server.port 8501 --server.address 0.0.0.0
 
 
 
 
3
  # Start Ollama in background
4
  echo "Starting Ollama..."
5
  ollama serve &
 
6
 
7
+ # Wait a few seconds for Ollama to be ready
8
+ sleep 5
 
9
 
10
+ # Ensure data directory exists
11
  mkdir -p /workspace/pencil_data
12
 
13
+ # Start Streamlit on HF Spaces port
14
  echo "Starting Streamlit interface..."
15
  cd /workspace
16
+ streamlit run app.py \
17
+ --server.port 7860 \
18
+ --server.address 0.0.0.0 \
19
+ --browser.gatherUsageStats false