CannaTech commited on
Commit
78f708d
·
1 Parent(s): bdf29b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "CannaTech/Flagged")
15
  # Define the authentication function
16
  def check_auth(username, password):
17
  # Get the credentials from the environment variable
18
- valid_credentials_str = os.getenv("VALID_CREDENTIALS")
19
 
20
  # Parse the string into a list of tuples
21
  valid_credentials = json.loads(valid_credentials_str)
@@ -139,4 +139,4 @@ iface = gr.Interface(
139
  )
140
 
141
  # Launch the interface with authentication
142
- iface.launch(auth_message="WARNING: UNAUTHORIZED ACCESS OR USE OF THIS CLOSED BETA IS STRICTLY PROHIBITED",auth=check_auth)
 
15
  # Define the authentication function
16
  def check_auth(username, password):
17
  # Get the credentials from the environment variable
18
+ valid_credentials_str = os.getenv("")
19
 
20
  # Parse the string into a list of tuples
21
  valid_credentials = json.loads(valid_credentials_str)
 
139
  )
140
 
141
  # Launch the interface with authentication
142
+ iface.launch(auth_message="WARNING: THIS BETA IS NOW CLOSED! UNAUTHORIZED ACCESS OR USE IS STRICTLY PROHIBITED",auth=check_auth)