unclemusclez commited on
Commit
6a5b758
1 Parent(s): 946ffd4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -25
app.py CHANGED
@@ -185,14 +185,16 @@ css="""/* Custom CSS to allow scrolling */
185
  """
186
  # Create Gradio interface
187
  with gr.Blocks(css=css) as demo:
188
- login = gr.LoginButton(
189
- min_width=250,
190
- )
191
- generate_pubkey = gr.Button (
192
- value=regenerate_pubkey(),
193
- min_width=250,
194
- )
195
-
 
 
196
  model_id = HuggingfaceHubSearch(
197
  label="Hugging Face Hub Model ID",
198
  placeholder="Search for model id on Huggingface",
@@ -206,31 +208,35 @@ with gr.Blocks(css=css) as demo:
206
  value="FP16"
207
  )
208
 
209
- latest = gr.Checkbox(
210
- value=False,
211
- label="Latest",
212
- info="Push Model to the Ollama Library with the :latest tag."
213
- )
214
-
215
- ollama_library_username = gr.Textbox(
216
- label="Ollama Library Username",
217
- info="Input your username from Ollama to push this model to their Library.",
218
- )
219
-
220
  account = gr.Code (
221
  ollama_pubkey.read().rstrip(),
222
  label="Ollama SSH pubkey",
223
  # info="Copy this and paste it into your Ollama profile.",
224
  )
225
-
226
- maintainer = gr.Checkbox(
227
- value=False,
228
- label="Maintainer",
229
- info="Use this option is your original repository on both Hugging Face and Ollama."
230
  )
231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
232
  iface = gr.Interface(
233
- fn=ollamafy_model, ,
234
  inputs=[
235
  login,
236
  generate_pubkey,
 
185
  """
186
  # Create Gradio interface
187
  with gr.Blocks(css=css) as demo:
188
+ with gr.Row():
189
+ with gr.Column(scale=1):
190
+ login = gr.LoginButton(
191
+ min_width=250,
192
+ )
193
+ with gr.Column(scale=1):
194
+ generate_pubkey = gr.Button (
195
+ value=regenerate_pubkey(),
196
+ min_width=250,
197
+ )
198
  model_id = HuggingfaceHubSearch(
199
  label="Hugging Face Hub Model ID",
200
  placeholder="Search for model id on Huggingface",
 
208
  value="FP16"
209
  )
210
 
 
 
 
 
 
 
 
 
 
 
 
211
  account = gr.Code (
212
  ollama_pubkey.read().rstrip(),
213
  label="Ollama SSH pubkey",
214
  # info="Copy this and paste it into your Ollama profile.",
215
  )
216
+
217
+ ollama_library_username = gr.Textbox(
218
+ label="Ollama Library Username",
219
+ info="Input your username from Ollama to push this model to their Library.",
 
220
  )
221
 
222
+ with gr.Row():
223
+ with gr.Column(scale=1):
224
+
225
+ latest = gr.Checkbox(
226
+ value=False,
227
+ label="Latest",
228
+ info="Push Model to the Ollama Library with the :latest tag."
229
+ )
230
+
231
+ with gr.Column(scale=1):
232
+ maintainer = gr.Checkbox(
233
+ value=False,
234
+ label="Maintainer",
235
+ info="Use this option is your original repository on both Hugging Face and Ollama."
236
+ )
237
+
238
  iface = gr.Interface(
239
+ fn=ollamafy_model,
240
  inputs=[
241
  login,
242
  generate_pubkey,