Spaces:
Running
Running
re-add auth layer
Browse files
app.py
CHANGED
|
@@ -157,4 +157,12 @@ def build_app():
|
|
| 157 |
|
| 158 |
if __name__ == "__main__":
|
| 159 |
app = build_app()
|
| 160 |
-
app.queue(max_size=5).launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
|
| 158 |
if __name__ == "__main__":
|
| 159 |
app = build_app()
|
| 160 |
+
app.queue(max_size=5).launch(
|
| 161 |
+
show_api=False,
|
| 162 |
+
auth=[
|
| 163 |
+
(os.getenv("APP_USERNAME"), os.getenv("APP_PASSWORD")),
|
| 164 |
+
(os.getenv("APP_PUBLIC_USERNAME"), os.getenv("APP_PUBLIC_PASSWORD")),
|
| 165 |
+
],
|
| 166 |
+
auth_message="Login to Candid's AI assistant",
|
| 167 |
+
ssr_mode=False
|
| 168 |
+
)
|