Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ def generate_text(prompt):
|
|
| 23 |
|
| 24 |
password_box = gr.Textbox(label="Enter password", type="password")
|
| 25 |
|
| 26 |
-
def check_password(password,
|
| 27 |
|
| 28 |
# password = gr.password("Enter password to continue")
|
| 29 |
if password != "patti-ai":
|
|
@@ -37,7 +37,7 @@ def check_password(password, prompt):
|
|
| 37 |
input_text = gr.Textbox(label="Enter prompt", type="text")
|
| 38 |
output_text = gr.Textbox(label="AI response", type="text")
|
| 39 |
demo = gr.Interface(
|
| 40 |
-
fn = check_password
|
| 41 |
inputs=[password_box, input_text],
|
| 42 |
outputs=output_text,
|
| 43 |
title="AI Chatbot for PlanetTogether Knowledge Base",
|
|
|
|
| 23 |
|
| 24 |
password_box = gr.Textbox(label="Enter password", type="password")
|
| 25 |
|
| 26 |
+
def check_password(password, 1):
|
| 27 |
|
| 28 |
# password = gr.password("Enter password to continue")
|
| 29 |
if password != "patti-ai":
|
|
|
|
| 37 |
input_text = gr.Textbox(label="Enter prompt", type="text")
|
| 38 |
output_text = gr.Textbox(label="AI response", type="text")
|
| 39 |
demo = gr.Interface(
|
| 40 |
+
fn = check_password,
|
| 41 |
inputs=[password_box, input_text],
|
| 42 |
outputs=output_text,
|
| 43 |
title="AI Chatbot for PlanetTogether Knowledge Base",
|