seanpedrickcase
commited on
Commit
•
35e6d45
1
Parent(s):
2bb3ff5
Correctly called authenticate user function in entrypoint router.py
Browse files- entrypoint_router.py +2 -1
entrypoint_router.py
CHANGED
@@ -16,8 +16,9 @@ if __name__ == "__main__":
|
|
16 |
else:
|
17 |
# Gradio App execution
|
18 |
from app import app, max_queue_size, max_file_size # Replace with actual import if needed
|
|
|
19 |
|
20 |
if os.getenv("COGNITO_AUTH", "0") == "1":
|
21 |
-
app.queue(max_size=max_queue_size).launch(show_error=True, auth=
|
22 |
else:
|
23 |
app.queue(max_size=max_queue_size).launch(show_error=True, inbrowser=True, max_file_size=max_file_size)
|
|
|
16 |
else:
|
17 |
# Gradio App execution
|
18 |
from app import app, max_queue_size, max_file_size # Replace with actual import if needed
|
19 |
+
from tools.auth import authenticate_user
|
20 |
|
21 |
if os.getenv("COGNITO_AUTH", "0") == "1":
|
22 |
+
app.queue(max_size=max_queue_size).launch(show_error=True, auth=authenticate_user, max_file_size=max_file_size)
|
23 |
else:
|
24 |
app.queue(max_size=max_queue_size).launch(show_error=True, inbrowser=True, max_file_size=max_file_size)
|