Spaces:
Runtime error
Runtime error
saattrupdan
commited on
Commit
·
33d5720
1
Parent(s):
7edb97b
feat: Add auth
Browse files- .gitignore +1 -0
- app.py +5 -1
.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1 |
.venv/
|
|
|
|
1 |
.venv/
|
2 |
+
.env
|
app.py
CHANGED
@@ -72,7 +72,11 @@ def main():
|
|
72 |
)
|
73 |
save_results_btn.click(fn=partial(save_results))
|
74 |
|
75 |
-
|
|
|
|
|
|
|
|
|
76 |
|
77 |
|
78 |
def save_results() -> None:
|
|
|
72 |
)
|
73 |
save_results_btn.click(fn=partial(save_results))
|
74 |
|
75 |
+
auth = [
|
76 |
+
("admin", os.getenv("ADMIN_PASSWORD")),
|
77 |
+
("annika", os.getenv("ANNIKA_PASSWORD")),
|
78 |
+
]
|
79 |
+
demo.launch(auth=auth)
|
80 |
|
81 |
|
82 |
def save_results() -> None:
|