Spaces:
Running
on
A10G
Running
on
A10G
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>
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 |
-
|
|
|
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)
|