broadfield-dev commited on
Commit
cc13c74
·
verified ·
1 Parent(s): e335128

Update app,py

Browse files
Files changed (1) hide show
  1. app,py +4 -2
app,py CHANGED
@@ -1,7 +1,9 @@
1
  import ollama
2
  import time
3
 
4
- # Configure the Ollama server
 
 
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'''