Spaces:
Runtime error
Runtime error
Update app,py
Browse files
app,py
CHANGED
@@ -1,7 +1,9 @@
|
|
1 |
import ollama
|
2 |
import time
|
3 |
|
4 |
-
|
|
|
|
|
5 |
ollama.setup(host="0.0.0.0", port=8000)
|
6 |
|
7 |
# Start the Ollama server
|
@@ -9,4 +11,4 @@ ollama.start()
|
|
9 |
|
10 |
# Wait for the server to be ready
|
11 |
while True:
|
12 |
-
time.sleep(10) # Adjust the sleep duration as necessary
|
|
|
1 |
import ollama
|
2 |
import time
|
3 |
|
4 |
+
|
5 |
+
os.system('ollama serve')
|
6 |
+
'''# Configure the Ollama server
|
7 |
ollama.setup(host="0.0.0.0", port=8000)
|
8 |
|
9 |
# Start the Ollama server
|
|
|
11 |
|
12 |
# Wait for the server to be ready
|
13 |
while True:
|
14 |
+
time.sleep(10) # Adjust the sleep duration as necessary'''
|