Adam Jirkovsky commited on
Commit
0e01dc8
·
1 Parent(s): 7be7cf3

Captcha update

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