Spaces:
Runtime error
Runtime error
unclemusclez
commited on
Commit
•
9af226a
1
Parent(s):
0c5e773
Update app.py
Browse files
app.py
CHANGED
@@ -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:
|
@@ -212,7 +212,7 @@ with gr.Blocks(css=css) as demo:
|
|
212 |
)
|
213 |
with gr.Column(scale=1):
|
214 |
generate_pubkey = gr.Button (
|
215 |
-
value=generate_pubkey,
|
216 |
min_width=250,
|
217 |
)
|
218 |
model_id = HuggingfaceHubSearch(
|
@@ -228,7 +228,7 @@ with gr.Blocks(css=css) as demo:
|
|
228 |
value="FP16"
|
229 |
)
|
230 |
|
231 |
-
|
232 |
ollama_pubkey,
|
233 |
label="Ollama SSH pubkey",
|
234 |
# info="Copy this and paste it into your Ollama profile.",
|
@@ -258,7 +258,7 @@ with gr.Blocks(css=css) as demo:
|
|
258 |
generate_pubkey.change(
|
259 |
fn=regenerate_pubkey,
|
260 |
inputs=generate_pubkey,
|
261 |
-
outputs=[
|
262 |
)
|
263 |
|
264 |
iface = gr.Interface(
|
|
|
57 |
print("Ollama pubkey Generated!")
|
58 |
|
59 |
|
60 |
+
def ollamafy_model(login, pubkey, 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:
|
|
|
212 |
)
|
213 |
with gr.Column(scale=1):
|
214 |
generate_pubkey = gr.Button (
|
215 |
+
# value=generate_pubkey,
|
216 |
min_width=250,
|
217 |
)
|
218 |
model_id = HuggingfaceHubSearch(
|
|
|
228 |
value="FP16"
|
229 |
)
|
230 |
|
231 |
+
pubkey = gr.Code (
|
232 |
ollama_pubkey,
|
233 |
label="Ollama SSH pubkey",
|
234 |
# info="Copy this and paste it into your Ollama profile.",
|
|
|
258 |
generate_pubkey.change(
|
259 |
fn=regenerate_pubkey,
|
260 |
inputs=generate_pubkey,
|
261 |
+
outputs=[pubkey]
|
262 |
)
|
263 |
|
264 |
iface = gr.Interface(
|