unclemusclez commited on
Commit
e89573f
1 Parent(s): 23eaa85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,10 +21,10 @@ HOME = os.environ.get("HOME")
21
  ollama_pubkey = open(f"{HOME}/.ollama/id_ed25519.pub", "r")
22
 
23
 
24
- def ollamafy_model( model_id, ollamafy, ollama_q_method, latest, maintainer, oauth_token: gr.OAuthToken | None ):
25
  if oauth_token.token is None:
26
  raise ValueError("You must be logged in to use Ollamafy")
27
- username = whoami(oauth_token.token)["name"]
28
  model_name = model_id.split('/')[-1]
29
  fp16 = f"{model_name}-fp16.gguf"
30
 
 
21
  ollama_pubkey = open(f"{HOME}/.ollama/id_ed25519.pub", "r")
22
 
23
 
24
+ def ollamafy_model(model_id, OLLAMA_USERNAME, ollama_q_method, latest, maintainer, oauth_token: gr.OAuthToken | None):
25
  if oauth_token.token is None:
26
  raise ValueError("You must be logged in to use Ollamafy")
27
+ # username = whoami(oauth_token.token)["name"]
28
  model_name = model_id.split('/')[-1]
29
  fp16 = f"{model_name}-fp16.gguf"
30