csepartha commited on
Commit
c10a27a
·
verified ·
1 Parent(s): b4084df

Upload demo.launcher

Browse files
Files changed (1) hide show
  1. demo.launcher +4 -12
demo.launcher CHANGED
@@ -1,21 +1,13 @@
1
  #!/bin/bash
2
-
3
- # Ensure Ollama model is pulled
4
- echo "Pulling Ollama model (granite3.1-moe)..."
5
  ollama pull granite3.1-moe
6
-
7
- # Start the Ollama API server in the background
8
- echo "Starting Ollama API server..."
9
  ollama serve &
10
-
11
- # Wait for Ollama server to be ready (increase the sleep time to 20 seconds)
12
- sleep 20
13
 
14
  # Start MCP server in the background
15
- echo "Starting MCP server..."
16
  python3 server.py &
 
17
 
18
- # Start Gradio (client.py) on 0.0.0.0:7860
19
- echo "Starting Gradio client..."
20
  python3 client.py --server_name 0.0.0.0 --server_port 7860
21
 
 
1
  #!/bin/bash
2
+ # Pull your Ollama model (can be moved to build if desired)
 
 
3
  ollama pull granite3.1-moe
 
 
 
4
  ollama serve &
5
+ sleep 5
 
 
6
 
7
  # Start MCP server in the background
 
8
  python3 server.py &
9
+ sleep 5 # Ensure server is fully initialized
10
 
11
+ # Start Gradio client
 
12
  python3 client.py --server_name 0.0.0.0 --server_port 7860
13