liamcripwell commited on
Commit
8934cd2
·
verified ·
1 Parent(s): f765ec4

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +15 -6
start.sh CHANGED
@@ -2,7 +2,6 @@
2
 
3
  echo "=== Starting NuMarkdown-8B-Thinking Space ==="
4
  echo "Starting vLLM server with optimized settings..."
5
-
6
  # Start vLLM with HF Spaces optimizations
7
  python3 -m vllm.entrypoints.openai.api_server \
8
  --model numind/NuMarkdown-8B-Thinking \
@@ -60,9 +59,19 @@ echo "USER=$(whoami)"
60
 
61
  # Launch Gradio with explicit error handling
62
  echo "Launching Gradio..."
63
- python $HOME/app/app.py || {
64
- echo "❌ Gradio failed to start!"
65
- echo "Checking if port is in use:"
66
- netstat -tuln | grep :7860
 
 
 
 
 
 
 
 
 
 
67
  exit 1
68
- }
 
2
 
3
  echo "=== Starting NuMarkdown-8B-Thinking Space ==="
4
  echo "Starting vLLM server with optimized settings..."
 
5
  # Start vLLM with HF Spaces optimizations
6
  python3 -m vllm.entrypoints.openai.api_server \
7
  --model numind/NuMarkdown-8B-Thinking \
 
59
 
60
  # Launch Gradio with explicit error handling
61
  echo "Launching Gradio..."
62
+ echo "Checking if app.py exists:"
63
+ ls -la $HOME/app/app.py
64
+ echo "Python path:"
65
+ which python3
66
+ echo "Current directory contents:"
67
+ ls -la $HOME/app/
68
+
69
+ echo "Attempting to run Python script..."
70
+ python3 $HOME/app/app.py
71
+ PYTHON_EXIT_CODE=$?
72
+ echo "Python script exit code: $PYTHON_EXIT_CODE"
73
+
74
+ if [ $PYTHON_EXIT_CODE -ne 0 ]; then
75
+ echo "❌ Python script failed with exit code $PYTHON_EXIT_CODE"
76
  exit 1
77
+ fi