Spaces:
Runtime error
Runtime error
# Start Ollama and capture its output | |
OLLAMA_URL=$(ollama start 2>&1 | grep -oP 'http://localhost:\d+') | |
echo "Ollama URL: $OLLAMA_URL" | |
# Run a simple HTTP server to serve the URL to Gradio | |
echo $OLLAMA_URL > ollama_url.txt |