CHAINLIT-RAG / ollama_serve.py
AI-RESEARCHER-2024's picture
Update ollama_serve.py
6d22485 verified
raw
history blame
213 Bytes
import os
import sys
# get model name
model = sys.argv[1]
# start the server
os.system('ollama serve &')
# pull the model
os.system(f'ollama pull {model}')
# verify the contents
os.system(f'ollama pull {model}')