Spaces:
Runtime error
Runtime error
File size: 533 Bytes
8f7f7d7 2b8669f b4084df 2b8669f f14b058 2b8669f 8f7f7d7 2b8669f b4084df 8f7f7d7 f14b058 2b8669f f14b058 2b8669f f14b058 8f7f7d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/bin/bash
# Ensure Ollama model is pulled
echo "Pulling Ollama model (granite3.1-moe)..."
ollama pull granite3.1-moe
# Start the Ollama API server in the background
echo "Starting Ollama API server..."
ollama serve &
# Wait for Ollama server to be ready (increase the sleep time to 20 seconds)
sleep 20
# Start MCP server in the background
echo "Starting MCP server..."
python3 server.py &
# Start Gradio (client.py) on 0.0.0.0:7860
echo "Starting Gradio client..."
python3 client.py --server_name 0.0.0.0 --server_port 7860
|