Spaces:
Sleeping
Sleeping
Commit
·
3022c67
1
Parent(s):
8d7efeb
order
Browse files
app.py
CHANGED
@@ -20,14 +20,13 @@ history = []
|
|
20 |
def ollama_service_thread():
|
21 |
subprocess.run("~/ollama serve", shell=True)
|
22 |
|
|
|
|
|
|
|
23 |
print("Giving ollama serve a moment")
|
24 |
time.sleep(10)
|
25 |
subprocess.run("~/ollama pull tinydolphin:latest", shell=True)
|
26 |
-
|
27 |
-
|
28 |
-
OLLAMA_SERVICE_THREAD = threading.Thread(target=ollama_service_thread)
|
29 |
-
OLLAMA_SERVICE_THREAD.start()
|
30 |
-
|
31 |
|
32 |
def get_history_messages():
|
33 |
messages = []
|
|
|
20 |
def ollama_service_thread():
|
21 |
subprocess.run("~/ollama serve", shell=True)
|
22 |
|
23 |
+
OLLAMA_SERVICE_THREAD = threading.Thread(target=ollama_service_thread)
|
24 |
+
OLLAMA_SERVICE_THREAD.start()
|
25 |
+
|
26 |
print("Giving ollama serve a moment")
|
27 |
time.sleep(10)
|
28 |
subprocess.run("~/ollama pull tinydolphin:latest", shell=True)
|
29 |
+
|
|
|
|
|
|
|
|
|
30 |
|
31 |
def get_history_messages():
|
32 |
messages = []
|