BotifyCloudAdmin commited on
Commit
f461fb7
·
verified ·
1 Parent(s): 9db7e9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -9,6 +9,8 @@ AVAILABLE_MODELS = {
9
  "Sonar": "sonar",
10
  }
11
 
 
 
12
  PX_ENDPOINT_URL = "https://api.perplexity.ai"
13
  PX_API_KEY = os.getenv('PX_KEY')
14
  PASSWORD = os.getenv("PASSWD") # Store the password in an environment variable
@@ -76,7 +78,7 @@ def check_password(input_password):
76
  else:
77
  return gr.update(value="", interactive=True), gr.update(visible=False)
78
 
79
- with gr.Blocks() as demo:
80
  with gr.Column():
81
  password_input = gr.Textbox(
82
  type="password", label="Enter Password", interactive=True
 
9
  "Sonar": "sonar",
10
  }
11
 
12
+ PAGE_TITLE="Perplexity.ai Chat"
13
+
14
  PX_ENDPOINT_URL = "https://api.perplexity.ai"
15
  PX_API_KEY = os.getenv('PX_KEY')
16
  PASSWORD = os.getenv("PASSWD") # Store the password in an environment variable
 
78
  else:
79
  return gr.update(value="", interactive=True), gr.update(visible=False)
80
 
81
+ with gr.Blocks(title=PAGE_TITLE) as demo:
82
  with gr.Column():
83
  password_input = gr.Textbox(
84
  type="password", label="Enter Password", interactive=True