unclemusclez commited on
Commit
7c500a5
·
verified ·
1 Parent(s): 3b98bfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -111,7 +111,7 @@ def ollamafy_model( model_id, ollamafy, ollama_q_method, latest, maintainer, oau
111
 
112
 
113
  if latest:
114
- ollama_copy = f"ollama cp {OLLAMA_USERNAME}/{model_id.lower()}:{q_method.lower()} {OLLAMA_USERNAME}/{model_id.lower()}:latest"
115
  ollama_copy_result = subprocess.run(ollama_copy, shell=True, capture_output=True)
116
  print(ollama_copy_result)
117
  if ollama_copy_result.returncode != 0:
@@ -158,7 +158,7 @@ with gr.Blocks(css=css) as demo:
158
  gr.LoginButton(min_width=250)
159
 
160
  model_id = HuggingfaceHubSearch(
161
- label="Hub Model ID",
162
  placeholder="Search for model id on Huggingface",
163
  search_type="model",
164
  )
@@ -179,17 +179,18 @@ with gr.Blocks(css=css) as demo:
179
  maintainer = gr.Checkbox(
180
  value=False,
181
  label="Maintainer",
182
- info="This 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="test",
187
  )
188
 
189
  iface = gr.Interface(
190
  fn=ollamafy_model,
191
  inputs=[
192
  model_id,
 
193
  ollama_q_method,
194
  latest,
195
  maintainer
@@ -198,8 +199,8 @@ with gr.Blocks(css=css) as demo:
198
  gr.Markdown(label="output"),
199
  gr.Image(show_label=False),
200
  ],
201
- title="Create your own Ollama Models and Push them to the Ollama Library, blazingly fast ⚡!",
202
- description="Sampled from https://huggingface.co/spaces/ggml-org/gguf-my-repo and https://huggingface.co/spaces/gingdev/ollama-server",
203
  api_name=False
204
  )
205
 
 
111
 
112
 
113
  if latest:
114
+ ollama_copy = f"ollama cp {OLLAMA_USERNAME}/{model_id.lower()}:{q_method.lower()} {OLLAMA_USERNAME}/{model_id.lower()}:latest"
115
  ollama_copy_result = subprocess.run(ollama_copy, shell=True, capture_output=True)
116
  print(ollama_copy_result)
117
  if ollama_copy_result.returncode != 0:
 
158
  gr.LoginButton(min_width=250)
159
 
160
  model_id = HuggingfaceHubSearch(
161
+ label=Hugging Face Hub Model ID",
162
  placeholder="Search for model id on Huggingface",
163
  search_type="model",
164
  )
 
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
 
189
  iface = gr.Interface(
190
  fn=ollamafy_model,
191
  inputs=[
192
  model_id,
193
+ OLLAMA_USERNAME,
194
  ollama_q_method,
195
  latest,
196
  maintainer
 
199
  gr.Markdown(label="output"),
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