Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,14 +21,17 @@ def generate_text(prompt):
|
|
| 21 |
# def placeholder_fn(input_text):
|
| 22 |
# pass
|
| 23 |
|
|
|
|
|
|
|
| 24 |
def check_password():
|
| 25 |
-
password_box = gr.Textbox(label="Enter password", type="password")
|
| 26 |
|
| 27 |
# password = gr.password("Enter password to continue")
|
| 28 |
if password != "patti-ai":
|
| 29 |
print("Incorrect password!")
|
| 30 |
return False
|
| 31 |
-
|
|
|
|
|
|
|
| 32 |
|
| 33 |
# Create Gradio interface
|
| 34 |
input_text = gr.Textbox(label="Enter prompt", type="text")
|
|
|
|
| 21 |
# def placeholder_fn(input_text):
|
| 22 |
# pass
|
| 23 |
|
| 24 |
+
password_box = gr.Textbox(label="Enter password", type="password")
|
| 25 |
+
|
| 26 |
def check_password():
|
|
|
|
| 27 |
|
| 28 |
# password = gr.password("Enter password to continue")
|
| 29 |
if password != "patti-ai":
|
| 30 |
print("Incorrect password!")
|
| 31 |
return False
|
| 32 |
+
else:
|
| 33 |
+
fn = generate_text
|
| 34 |
+
return True
|
| 35 |
|
| 36 |
# Create Gradio interface
|
| 37 |
input_text = gr.Textbox(label="Enter prompt", type="text")
|