Adam Jirkovsky commited on
Commit
4ac900f
·
1 Parent(s): eed2573

Captcha update

Browse files
Files changed (1) hide show
  1. app.py +23 -23
app.py CHANGED
@@ -359,29 +359,29 @@ with demo:
359
  )
360
  base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
361
  """
362
- with gr.Group():
363
- image, text = generate_captcha()
364
- captcha_img = gr.Image(
365
- image,
366
- #container=False,
367
- show_download_button=False,
368
- show_fullscreen_button=False,
369
- show_share_button=False,
370
- )
371
- captcha_input = gr.Textbox(placeholder="Enter the text in the image above")
372
- submit_button = gr.Button("Submit Eval", interactive=True)
373
- submission_result = gr.Markdown()
374
- submit_button.click(
375
- fn = add_new_eval,
376
- inputs = [
377
- model_name_textbox,
378
- upload_button,
379
- precision,
380
- hf_model_id,
381
- contact_email
382
- ],
383
- outputs = [submission_result, model_name_textbox, precision, hf_model_id, contact_email],
384
- )
385
 
386
  with gr.Row():
387
  with gr.Accordion("📙 Citation", open=False):
 
359
  )
360
  base_model_name_textbox = gr.Textbox(label="Base model (for delta or adapter weights)")
361
  """
362
+ with gr.Group():
363
+ image, text = generate_captcha()
364
+ captcha_img = gr.Image(
365
+ image,
366
+ #container=False,
367
+ show_download_button=False,
368
+ show_fullscreen_button=False,
369
+ show_share_button=False,
370
+ )
371
+ captcha_input = gr.Textbox(placeholder="Enter the text in the image above")
372
+ submit_button = gr.Button("Submit Eval", interactive=True)
373
+ submission_result = gr.Markdown()
374
+ submit_button.click(
375
+ fn = add_new_eval,
376
+ inputs = [
377
+ model_name_textbox,
378
+ upload_button,
379
+ precision,
380
+ hf_model_id,
381
+ contact_email
382
+ ],
383
+ outputs = [submission_result, model_name_textbox, precision, hf_model_id, contact_email],
384
+ )
385
 
386
  with gr.Row():
387
  with gr.Accordion("📙 Citation", open=False):