Update app.py
Browse files
app.py
CHANGED
|
@@ -446,7 +446,7 @@ def validate_input(user_input_validate, validate=False):
|
|
| 446 |
if user_input_hashed == hash_input(ANTI_BOT_PW):
|
| 447 |
return "Richtig! Weiter gehts... ", True, gr.Textbox(visible=False), gr.Button(visible=False)
|
| 448 |
else:
|
| 449 |
-
return "Falsche Antwort!!!!!!!!!", False, gr.Textbox(label = "", placeholder="Bitte tippen Sie das oben im Moodle Kurs angegebene Wort ein, um zu beweisen, dass Sie kein Bot sind.", visible=True, scale=
|
| 450 |
"""
|
| 451 |
def custom_css():
|
| 452 |
return
|
|
@@ -504,7 +504,7 @@ with gr.Blocks(css=customCSS, theme=themeAlex) as demo:
|
|
| 504 |
################################################
|
| 505 |
gr.Markdown(description_top)
|
| 506 |
with gr.Row():
|
| 507 |
-
user_input_validate =gr.Textbox(label= "Bitte das oben im Moodle Kurs angegebene Wort eingeben, um die Anwendung zu starten", visible=True, interactive=True, scale=
|
| 508 |
validate_btn = gr.Button("Validieren", visible = True)
|
| 509 |
validation_result = gr.Text(label="Validierungsergebnis")
|
| 510 |
|
|
|
|
| 446 |
if user_input_hashed == hash_input(ANTI_BOT_PW):
|
| 447 |
return "Richtig! Weiter gehts... ", True, gr.Textbox(visible=False), gr.Button(visible=False)
|
| 448 |
else:
|
| 449 |
+
return "Falsche Antwort!!!!!!!!!", False, gr.Textbox(label = "", placeholder="Bitte tippen Sie das oben im Moodle Kurs angegebene Wort ein, um zu beweisen, dass Sie kein Bot sind.", visible=True, scale= 5), gr.Button("Validieren", visible = True)
|
| 450 |
"""
|
| 451 |
def custom_css():
|
| 452 |
return
|
|
|
|
| 504 |
################################################
|
| 505 |
gr.Markdown(description_top)
|
| 506 |
with gr.Row():
|
| 507 |
+
user_input_validate =gr.Textbox(label= "Bitte das oben im Moodle Kurs angegebene Wort eingeben, um die Anwendung zu starten", visible=True, interactive=True, scale= 5)
|
| 508 |
validate_btn = gr.Button("Validieren", visible = True)
|
| 509 |
validation_result = gr.Text(label="Validierungsergebnis")
|
| 510 |
|