unclemusclez commited on
Commit
8a3edae
·
verified ·
1 Parent(s): f420f23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -197,7 +197,7 @@ with gr.Blocks(css=css) as demo:
197
  )
198
  with gr.Column(scale=1):
199
  generate_pubkey = gr.Button (
200
- value=regenerate_pubkey,
201
  min_width=250,
202
  )
203
  model_id = HuggingfaceHubSearch(
@@ -239,7 +239,13 @@ with gr.Blocks(css=css) as demo:
239
  label="Maintainer",
240
  info="Use this option is your original repository on both Hugging Face and Ollama."
241
  )
242
-
 
 
 
 
 
 
243
  iface = gr.Interface(
244
  fn=ollamafy_model,
245
  inputs=[
@@ -252,7 +258,6 @@ with gr.Blocks(css=css) as demo:
252
  maintainer,
253
  ],
254
  outputs=[
255
- account,
256
  gr.Markdown(label="output"),
257
  gr.Image(show_label=False),
258
  ],
 
197
  )
198
  with gr.Column(scale=1):
199
  generate_pubkey = gr.Button (
200
+ value=generate_pubkey,
201
  min_width=250,
202
  )
203
  model_id = HuggingfaceHubSearch(
 
239
  label="Maintainer",
240
  info="Use this option is your original repository on both Hugging Face and Ollama."
241
  )
242
+
243
+ generate_pubkey.change(
244
+ fn=regenerate_pubkey,
245
+ inputs=generate_pubkey,
246
+ outputs=[account]
247
+ )
248
+
249
  iface = gr.Interface(
250
  fn=ollamafy_model,
251
  inputs=[
 
258
  maintainer,
259
  ],
260
  outputs=[
 
261
  gr.Markdown(label="output"),
262
  gr.Image(show_label=False),
263
  ],