rafaym commited on
Commit
6a98efb
·
verified ·
1 Parent(s): 18ebe84

fix: gr.Markdown does not accept scale kwarg, wrap in Column instead

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -324,11 +324,10 @@ def build_app() -> gr.Blocks:
324
 
325
  # HF OAuth login — must be at top level of Blocks for the redirect to work
326
  with gr.Row():
327
- gr.LoginButton(scale=0)
328
- gr.Markdown(
329
- "_Sign in with your HuggingFace account so we can credit your contribution._",
330
- scale=1,
331
- )
332
 
333
  with gr.Row():
334
  # ---- Left column: config + exercise ----
 
324
 
325
  # HF OAuth login — must be at top level of Blocks for the redirect to work
326
  with gr.Row():
327
+ with gr.Column(scale=0, min_width=200):
328
+ gr.LoginButton()
329
+ with gr.Column(scale=1):
330
+ gr.Markdown("_Sign in with your HuggingFace account so we can credit your contribution._")
 
331
 
332
  with gr.Row():
333
  # ---- Left column: config + exercise ----