Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,11 +38,12 @@ demo = gr.Interface(
|
|
| 38 |
# Define password-protected Gradio interface
|
| 39 |
def check_password(password):
|
| 40 |
if password == "patti-ai":
|
| 41 |
-
|
| 42 |
password_box.visible = False
|
|
|
|
| 43 |
return "Access granted"
|
| 44 |
else:
|
| 45 |
-
|
| 46 |
password_box.visible = True
|
| 47 |
return "Access denied"
|
| 48 |
|
|
|
|
| 38 |
# Define password-protected Gradio interface
|
| 39 |
def check_password(password):
|
| 40 |
if password == "patti-ai":
|
| 41 |
+
input_text.visible = True
|
| 42 |
password_box.visible = False
|
| 43 |
+
fn=generate_text
|
| 44 |
return "Access granted"
|
| 45 |
else:
|
| 46 |
+
input_text.visible = False
|
| 47 |
password_box.visible = True
|
| 48 |
return "Access denied"
|
| 49 |
|