Update app.py
Browse files
app.py
CHANGED
@@ -421,9 +421,9 @@ def get_dropdown_choices(info_dict):
|
|
421 |
|
422 |
def login(username, password):
|
423 |
if username == USERNAME and password == PASSWORD:
|
424 |
-
return gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(value="Login successful! You can now access the Caption Captain tab.", visible=True)
|
425 |
else:
|
426 |
-
return gr.update(visible=False), gr.update(visible=True), gr.update(visible=True), gr.update(value="Invalid username or password. Please try again.", visible=True)
|
427 |
|
428 |
# Gradio interface
|
429 |
with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True) as demo:
|
|
|
421 |
|
422 |
def login(username, password):
|
423 |
if username == USERNAME and password == PASSWORD:
|
424 |
+
return gr.update(visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(value="Login successful! You can now access the Caption Captain tab.", visible=True, value="ugd")
|
425 |
else:
|
426 |
+
return gr.update(visible=False), gr.update(visible=True), gr.update(visible=True), gr.update(value="Invalid username or password. Please try again.", visible=True, value="ugd!")
|
427 |
|
428 |
# Gradio interface
|
429 |
with gr.Blocks(theme="Hev832/Applio", css=css, fill_width=True, fill_height=True) as demo:
|