Spaces:
Sleeping
Sleeping
Commit
·
d61df23
1
Parent(s):
887a802
download ollama
Browse files
app.py
CHANGED
@@ -9,15 +9,12 @@ import threading
|
|
9 |
if not os.path.exists(os.path.expanduser("~/ollama")):
|
10 |
subprocess.run("curl -L https://ollama.com/download/ollama-linux-amd64 -o ~/ollama", shell=True)
|
11 |
|
12 |
-
|
13 |
-
|
14 |
history = []
|
15 |
|
16 |
-
|
17 |
def ollama_service_thread():
|
18 |
subprocess.run("~/ollama serve", shell=True)
|
19 |
|
20 |
-
OLLAMA_SERVICE_THREAD = Thread(target=ollama_service_thread)
|
21 |
OLLAMA_SERVICE_THREAD.start()
|
22 |
|
23 |
|
|
|
9 |
if not os.path.exists(os.path.expanduser("~/ollama")):
|
10 |
subprocess.run("curl -L https://ollama.com/download/ollama-linux-amd64 -o ~/ollama", shell=True)
|
11 |
|
|
|
|
|
12 |
history = []
|
13 |
|
|
|
14 |
def ollama_service_thread():
|
15 |
subprocess.run("~/ollama serve", shell=True)
|
16 |
|
17 |
+
OLLAMA_SERVICE_THREAD = threading.Thread(target=ollama_service_thread)
|
18 |
OLLAMA_SERVICE_THREAD.start()
|
19 |
|
20 |
|