unclemusclez commited on
Commit
946ffd4
·
verified ·
1 Parent(s): 1d3586d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -24,7 +24,7 @@ ollama_start = f"systemctl ollama start"
24
  ollama_stop = f"systemctl ollama stop"
25
 
26
 
27
- def regenerate_pubkey(oauth_token: gr.OAuthToken | None):
28
 
29
  if oauth_token.token is None:
30
  raise ValueError("You must be logged in to use Ollamafy")
@@ -230,19 +230,15 @@ with gr.Blocks(css=css) as demo:
230
  )
231
 
232
  iface = gr.Interface(
233
- fn=ollamafy_model,
234
  inputs=[
235
- header=[
236
- login,
237
- generate_pubkey,
238
- ],
239
  model_id,
240
  ollama_library_username,
241
  ollama_q_method,
242
- repo=[
243
- latest,
244
- maintainer,
245
- ],
246
  ],
247
  outputs=[
248
  account,
 
24
  ollama_stop = f"systemctl ollama stop"
25
 
26
 
27
+ def regenerate_pubkey(login, oauth_token: gr.OAuthToken | None):
28
 
29
  if oauth_token.token is None:
30
  raise ValueError("You must be logged in to use Ollamafy")
 
230
  )
231
 
232
  iface = gr.Interface(
233
+ fn=ollamafy_model, ,
234
  inputs=[
235
+ login,
236
+ generate_pubkey,
 
 
237
  model_id,
238
  ollama_library_username,
239
  ollama_q_method,
240
+ latest,
241
+ maintainer,
 
 
242
  ],
243
  outputs=[
244
  account,