unclemusclez commited on
Commit
5b80620
·
verified ·
1 Parent(s): 7f796a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -23,7 +23,7 @@ ollama_pubkey = open(f"{HOME}/.ollama/id_ed25519.pub", "r")
23
 
24
  def ollamafy_model( model_id, ollamafy, ollama_q_method, latest, maintainer, oauth_token: gr.OAuthToken | None ):
25
  if oauth_token.token is None:
26
- raise ValueError("You must be logged in to use GGUF-my-repo")
27
  username = whoami(oauth_token.token)["name"]
28
  model_name = model_id.split('/')[-1]
29
  fp16 = f"{model_name}-fp16.gguf"
@@ -179,10 +179,10 @@ with gr.Blocks(css=css) as demo:
179
  maintainer = gr.Checkbox(
180
  value=False,
181
  label="Maintainer",
182
- info="Only use this option is your original repository on both Hugging Face and Ollama. \nDO NOT USE unless using the same USERNAME on both platforms."
183
  )
184
  OLLAMA_USERNAME = gr.Textbox(
185
- label="Ollama.com Library Username",
186
  info="Input your username from Ollama to push this model to their Library.",
187
  )
188
 
@@ -200,7 +200,7 @@ with gr.Blocks(css=css) as demo:
200
  gr.Image(show_label=False),
201
  ],
202
  title="Ollamafy",
203
- description="Import Hugging Face Models to Ollama and Push them to the Ollama Library 🦙 \nSampled from: \n- https://huggingface.co/spaces/ggml-org/gguf-my-repo \n-https://huggingface.co/spaces/gingdev/ollama-server",
204
  api_name=False
205
  )
206
 
 
23
 
24
  def ollamafy_model( model_id, ollamafy, ollama_q_method, latest, maintainer, oauth_token: gr.OAuthToken | None ):
25
  if oauth_token.token is None:
26
+ raise ValueError("You must be logged in to use Ollamafy")
27
  username = whoami(oauth_token.token)["name"]
28
  model_name = model_id.split('/')[-1]
29
  fp16 = f"{model_name}-fp16.gguf"
 
179
  maintainer = gr.Checkbox(
180
  value=False,
181
  label="Maintainer",
182
+ 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."
183
  )
184
  OLLAMA_USERNAME = gr.Textbox(
185
+ label="Ollama Library Username",
186
  info="Input your username from Ollama to push this model to their Library.",
187
  )
188
 
 
200
  gr.Image(show_label=False),
201
  ],
202
  title="Ollamafy",
203
+ description="Import Hugging Face Models to Ollama and Push them to the Ollama Library 🦙 \n\n Sampled from: \n\n - https://huggingface.co/spaces/ggml-org/gguf-my-repo \n\n - https://huggingface.co/spaces/gingdev/ollama-server",
204
  api_name=False
205
  )
206