theotherdylan commited on
Commit
2c0fdb1
·
1 Parent(s): d61df23

make it executable

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,9 +5,11 @@ import gradio
5
  import os
6
  import threading
7
 
 
8
 
9
- if not os.path.exists(os.path.expanduser("~/ollama")):
10
  subprocess.run("curl -L https://ollama.com/download/ollama-linux-amd64 -o ~/ollama", shell=True)
 
11
 
12
  history = []
13
 
 
5
  import os
6
  import threading
7
 
8
+ OLLAMA = os.path.expanduser("~/ollama")
9
 
10
+ if not os.path.exists(OLLAMA):
11
  subprocess.run("curl -L https://ollama.com/download/ollama-linux-amd64 -o ~/ollama", shell=True)
12
+ os.chmod(OLLAMA, 0755)
13
 
14
  history = []
15