patti-j commited on
Commit
9d52714
·
1 Parent(s): 3e86c1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- return True
 
 
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")