Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -1,8 +1,11 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import helper
|
3 |
|
4 |
-
|
|
|
|
|
5 |
app = helper.registry(name="marco-o1")
|
6 |
|
7 |
if __name__ == "__main__":
|
8 |
-
app.launch()
|
|
|
1 |
+
import os
|
2 |
import gradio as gr
|
3 |
import helper
|
4 |
|
5 |
+
USERS = os.environ.get("USERS")
|
6 |
+
PWD = os.environ.get("PWD")
|
7 |
+
|
8 |
app = helper.registry(name="marco-o1")
|
9 |
|
10 |
if __name__ == "__main__":
|
11 |
+
app.launch(auth=[USERS, PWD])
|