vilarin commited on
Commit
1cf4e84
·
verified ·
1 Parent(s): aa2a2cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -96,6 +96,8 @@ def ollama_func(command):
96
 
97
  @spaces.GPU()
98
  def launch():
 
 
99
  OLLAMA_SERVICE_THREAD.start()
100
  print("Giving ollama serve a moment")
101
  time.sleep(10)
 
96
 
97
  @spaces.GPU()
98
  def launch():
99
+ global OLLAMA_SERVICE_THREAD
100
+ OLLAMA_SERVICE_THREAD = threading.Thread(target=ollama_service_thread)
101
  OLLAMA_SERVICE_THREAD.start()
102
  print("Giving ollama serve a moment")
103
  time.sleep(10)