Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ OLLAMA = os.path.expanduser("~/ollama")
|
|
9 |
print("Checking if Ollama exists at the path")
|
10 |
if not os.path.exists(OLLAMA):
|
11 |
print("Ollama not found, downloading it")
|
12 |
-
subprocess.run("curl -
|
13 |
os.chmod(OLLAMA, 0o755)
|
14 |
|
15 |
def ollama_service_thread():
|
|
|
9 |
print("Checking if Ollama exists at the path")
|
10 |
if not os.path.exists(OLLAMA):
|
11 |
print("Ollama not found, downloading it")
|
12 |
+
subprocess.run("curl -fsSL https://ollama.com/install.sh | sh", shell=True)
|
13 |
os.chmod(OLLAMA, 0o755)
|
14 |
|
15 |
def ollama_service_thread():
|