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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,6 +27,8 @@ def terminate():
27
  OLLAMA_SERVICE_THREAD.join()
28
  process = None
29
  OLLAMA_SERVICE_THREAD = None
 
 
30
 
31
  # Uncomment and modify the model to what you want locally
32
  # model = "moondream"
@@ -48,8 +50,6 @@ DESCRIPTION = f"""
48
  <p>Feel free to test models with ollama.
49
  <br>
50
  Input <em>/pull model_name</em> to pull model.
51
- <br>
52
- Input <em>/list</em> to get model list.
53
  </p>
54
  </center>
55
  """
 
27
  OLLAMA_SERVICE_THREAD.join()
28
  process = None
29
  OLLAMA_SERVICE_THREAD = None
30
+ os.system("systemctl stop ollama.service")
31
+ return "Ollama service stopped."
32
 
33
  # Uncomment and modify the model to what you want locally
34
  # model = "moondream"
 
50
  <p>Feel free to test models with ollama.
51
  <br>
52
  Input <em>/pull model_name</em> to pull model.
 
 
53
  </p>
54
  </center>
55
  """