Spaces:
Runtime error
Runtime error
Adam Jirkovsky
commited on
Commit
·
4d345b8
1
Parent(s):
8f52f69
Suspend captcha
Browse files
app.py
CHANGED
|
@@ -354,11 +354,11 @@ with demo:
|
|
| 354 |
captcha_input = gr.Textbox(placeholder="Enter the text in the image above", show_label=False, container=False)
|
| 355 |
check_button = gr.Button("Validate", interactive=True)
|
| 356 |
captcha_result = gr.Markdown()
|
| 357 |
-
check_button.click(
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
)
|
| 362 |
submit_button = gr.Button("Submit Eval", interactive=True)
|
| 363 |
submission_result = gr.Markdown()
|
| 364 |
submit_button.click(
|
|
|
|
| 354 |
captcha_input = gr.Textbox(placeholder="Enter the text in the image above", show_label=False, container=False)
|
| 355 |
check_button = gr.Button("Validate", interactive=True)
|
| 356 |
captcha_result = gr.Markdown()
|
| 357 |
+
# check_button.click(
|
| 358 |
+
# fn = lambda: gr.alert("Correct!" if captcha_input.value == text else "Incorrect!"),
|
| 359 |
+
# inputs = [captcha_input, text],
|
| 360 |
+
# outputs = [captcha_correct, captcha_result],
|
| 361 |
+
# )
|
| 362 |
submit_button = gr.Button("Submit Eval", interactive=True)
|
| 363 |
submission_result = gr.Markdown()
|
| 364 |
submit_button.click(
|