Spaces:
Runtime error
Runtime error
unclemusclez
commited on
Commit
•
0d849a1
1
Parent(s):
9af226a
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ HOME = os.environ.get("HOME")
|
|
20 |
token = os.environ.get("HF_TOKEN")
|
21 |
library_username = os.environ.get("OLLAMA_USERNAME").lower()
|
22 |
|
23 |
-
def regenerate_pubkey(oauth_token: gr.OAuthToken | None):
|
24 |
if oauth_token.token is None:
|
25 |
raise ValueError("You must be logged in to use Ollamafy")
|
26 |
try:
|
@@ -57,7 +57,7 @@ def regenerate_pubkey(oauth_token: gr.OAuthToken | None):
|
|
57 |
print("Ollama pubkey Generated!")
|
58 |
|
59 |
|
60 |
-
def ollamafy_model(login,
|
61 |
ollama_library_username: library_username | None
|
62 |
|
63 |
if oauth_token.token is None:
|
|
|
20 |
token = os.environ.get("HF_TOKEN")
|
21 |
library_username = os.environ.get("OLLAMA_USERNAME").lower()
|
22 |
|
23 |
+
def regenerate_pubkey(pubkey, oauth_token: gr.OAuthToken | None):
|
24 |
if oauth_token.token is None:
|
25 |
raise ValueError("You must be logged in to use Ollamafy")
|
26 |
try:
|
|
|
57 |
print("Ollama pubkey Generated!")
|
58 |
|
59 |
|
60 |
+
def ollamafy_model(login, model_id, ollama_library_username , ollama_q_method, latest, maintainer, oauth_token: gr.OAuthToken | None):
|
61 |
ollama_library_username: library_username | None
|
62 |
|
63 |
if oauth_token.token is None:
|