reach-vb HF staff Wauplin HF staff commited on
Commit
ec000c3
1 Parent(s): a241106

Move `LoginButton` outside of Interface block (#52)

Browse files

- Move `LoginButton` outside of Interface block (f69a01be24d2e8ca59089a5bdbb506468a963627)


Co-authored-by: Lucain Pouget <Wauplin@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -164,7 +164,6 @@ iface = gr.Interface(
164
  label="Private Repo",
165
  info="Create a private repo under your username."
166
  ),
167
- gr.LoginButton(min_width=250),
168
  ],
169
  outputs=[
170
  gr.Markdown(label="output"),
@@ -173,6 +172,10 @@ iface = gr.Interface(
173
  title="Create your own GGUF Quants, blazingly fast ⚡!",
174
  description="The space takes an HF repo as an input, quantises it and creates a Public repo containing the selected quant under your HF user namespace.",
175
  )
 
 
 
 
176
 
177
  # Launch the interface
178
- iface.queue(default_concurrency_limit=1, max_size=5).launch(debug=True)
 
164
  label="Private Repo",
165
  info="Create a private repo under your username."
166
  ),
 
167
  ],
168
  outputs=[
169
  gr.Markdown(label="output"),
 
172
  title="Create your own GGUF Quants, blazingly fast ⚡!",
173
  description="The space takes an HF repo as an input, quantises it and creates a Public repo containing the selected quant under your HF user namespace.",
174
  )
175
+ with gr.Blocks() as demo:
176
+ gr.markdown("You must be logged in to use GGUF-my-repo.")
177
+ gr.LoginButton(min_width=250)
178
+ iface.render()
179
 
180
  # Launch the interface
181
+ demo.queue(default_concurrency_limit=1, max_size=5).launch(debug=True)