unclemusclez commited on
Commit
d3d6c07
1 Parent(s): 291e6bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -20,9 +20,8 @@ HOME = os.environ.get("HOME")
20
  library_username = os.environ.get("OLLAMA_USERNAME").lower()
21
  ollama_pubkey = open(f"{HOME}/.ollama/id_ed25519.pub", "r")
22
 
23
- def ollamafy_model(login, account, model_id, ollama_library_username, ollama_q_method, latest, maintainer):
24
- oauth_token: gr.OAuthToken | None
25
- ollama_library_username: library_username | None
26
  if oauth_token.token is None:
27
  raise ValueError("You must be logged in to use Ollamafy")
28
  # username = whoami(oauth_token.token)["name"]
 
20
  library_username = os.environ.get("OLLAMA_USERNAME").lower()
21
  ollama_pubkey = open(f"{HOME}/.ollama/id_ed25519.pub", "r")
22
 
23
+ def ollamafy_model(login, account, model_id, ollama_library_username: library_username | None , ollama_q_method, latest, maintainer, oauth_token: gr.OAuthToken | None):
24
+
 
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"]