mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-04-10 20:29:54 +00:00
fixed som errors
This commit is contained in:
parent
ed6afa3e25
commit
84e25d2714
@ -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'])
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user