fixed som errors

This commit is contained in:
Saifeddine ALOUI 2024-01-11 02:03:35 +01:00
parent ed6afa3e25
commit 84e25d2714
2 changed files with 4 additions and 4 deletions

View File

@ -86,9 +86,9 @@ class Service:
# run ollama
if platform.system() == 'Windows':
subprocess.run(['wsl', 'bash', '~/run_ollama.sh'])
subprocess.Popen(['wsl', 'bash', '~/run_ollama.sh'])
else:
subprocess.run(['bash', '~/run_ollama.sh'])
subprocess.Popen(['bash', '~/run_ollama.sh'])

View File

@ -4,12 +4,12 @@
OLLAMA_HOST="0.0.0.0:11434"
# Start the OLLAMA server
ollama serve &
OLLAMA_MODELS=~/ollama/models ollama serve &
# Check if models.txt exists
if [ ! -f models.txt ]; then
# Create models.txt and add "mixtral" to it
echo "mixtral" > models.txt
echo "mistral" > models.txt
fi
# Read the models from the file