hitz02 commited on
Commit
d622ba6
·
1 Parent(s): a1123b8

Update app.py

Browse files

passing auth details from environ

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,5 +1,6 @@
1
 
2
  import gradio as gr
 
3
 
4
  from utils import *
5
 
@@ -40,4 +41,4 @@ with gr.Blocks() as demo:
40
  # gr.Examples(["My name is Clara and I am"], inputs=[seed])
41
 
42
  if __name__ == "__main__":
43
- demo.launch(auth=('sense', 'codefest123'))
 
1
 
2
  import gradio as gr
3
+ import os
4
 
5
  from utils import *
6
 
 
41
  # gr.Examples(["My name is Clara and I am"], inputs=[seed])
42
 
43
  if __name__ == "__main__":
44
+ demo.launch(auth=(os.environ['username'], os.environ['password']))