unclemusclez commited on
Commit
539c30e
·
verified ·
1 Parent(s): e89573f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -183,7 +183,7 @@ with gr.Blocks(css=css) as demo:
183
  maintainer = gr.Checkbox(
184
  value=False,
185
  label="Maintainer",
186
- info="Only use this option is your original repository on both Hugging Face and Ollama. \n\n DO NOT USE unless using the same USERNAME on both platforms."
187
  )
188
  OLLAMA_USERNAME = gr.Textbox(
189
  label="Ollama Library Username",
@@ -212,7 +212,7 @@ with gr.Blocks(css=css) as demo:
212
 
213
  def restart_space():
214
  ollama_pubkey.close(),
215
- HfApi().restart_space(repo_id="unclemusclez/ollamafy", token=HF_TOKEN, factory_reboot=True)
216
 
217
  scheduler = BackgroundScheduler()
218
  scheduler.add_job(restart_space, "interval", seconds=21600)
 
183
  maintainer = gr.Checkbox(
184
  value=False,
185
  label="Maintainer",
186
+ info="Use this option is your original repository on both Hugging Face and Ollama."
187
  )
188
  OLLAMA_USERNAME = gr.Textbox(
189
  label="Ollama Library Username",
 
212
 
213
  def restart_space():
214
  ollama_pubkey.close(),
215
+ HfApi().restart_space(repo_id="unclemusclez/ollamafy", token=HF_TOKEN, ollama_username=OLLAMA_USERNAME factory_reboot=True)
216
 
217
  scheduler = BackgroundScheduler()
218
  scheduler.add_job(restart_space, "interval", seconds=21600)