rodrigomasini commited on
Commit
aa5176f
·
verified ·
1 Parent(s): 52a4ff6

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -2
main.py CHANGED
@@ -1,8 +1,11 @@
 
1
  import gradio as gr
2
  import helper
3
 
4
- # Create the Gradio interface using helper.registry
 
 
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])