Spaces:
Runtime error
Runtime error
Update start.sh
Browse files
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 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|