Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("
|
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
|
|
|
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)
|