DeathDaDev commited on
Commit
1efe400
1 Parent(s): 946f48b

Create run_ollama.sh

Browse files
Files changed (1) hide show
  1. run_ollama.sh +9 -0
run_ollama.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Start Ollama and capture its output
4
+ OLLAMA_URL=$(ollama start 2>&1 | grep -oP 'http://localhost:\d+')
5
+
6
+ echo "Ollama URL: $OLLAMA_URL"
7
+
8
+ # Run a simple HTTP server to serve the URL to Gradio
9
+ echo $OLLAMA_URL > ollama_url.txt