Spaces:
Sleeping
Sleeping
created test user
Browse files
app.py
CHANGED
|
@@ -192,6 +192,9 @@ def check_auth(username, password):
|
|
| 192 |
elif (user == 'mike' and password == 'veytel'):
|
| 193 |
create_csv()
|
| 194 |
return True
|
|
|
|
|
|
|
|
|
|
| 195 |
elif (user == 'nischal' and password == 'veytel'):
|
| 196 |
create_csv()
|
| 197 |
return True
|
|
@@ -396,8 +399,8 @@ with gr.Blocks() as demo:
|
|
| 396 |
update_layout(image_id, index)
|
| 397 |
|
| 398 |
if __name__ == "__main__":
|
| 399 |
-
|
| 400 |
-
|
| 401 |
|
| 402 |
|
| 403 |
|
|
|
|
| 192 |
elif (user == 'mike' and password == 'veytel'):
|
| 193 |
create_csv()
|
| 194 |
return True
|
| 195 |
+
elif (user == 'test' and password == 'test'):
|
| 196 |
+
create_csv()
|
| 197 |
+
return True
|
| 198 |
elif (user == 'nischal' and password == 'veytel'):
|
| 199 |
create_csv()
|
| 200 |
return True
|
|
|
|
| 399 |
update_layout(image_id, index)
|
| 400 |
|
| 401 |
if __name__ == "__main__":
|
| 402 |
+
demo.launch(auth=check_auth)
|
| 403 |
+
|
| 404 |
|
| 405 |
|
| 406 |
|