Spaces:
Runtime error
Runtime error
Create ollama_serve.py
Browse files- ollama_serve.py +8 -0
ollama_serve.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
# model name
|
4 |
+
model = 'llama3.2'
|
5 |
+
os.system('ollama serve &')
|
6 |
+
os.system(f'ollama pull {model}')
|
7 |
+
# verify the contents
|
8 |
+
os.system(f'ollama pull {model}')
|