pknayak commited on
Commit
9e9c048
1 Parent(s): e9e1c86

update app.py

Browse files

* adding the credentials to the secrets and using them in the app

Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,6 +1,12 @@
1
  import gradio as gr
 
 
 
 
 
 
2
 
3
  with gr.Blocks() as demo:
4
  gr.Markdown("# Welcome to the TradingGEN app")
5
 
6
- demo.launch(auth=("admin","admin"))
 
1
  import gradio as gr
2
+ import os
3
+
4
+
5
+ USERNAME = os.environ.get("USERNAME")
6
+ PASSWORD = os.environ.get("PASSWORD")
7
+
8
 
9
  with gr.Blocks() as demo:
10
  gr.Markdown("# Welcome to the TradingGEN app")
11
 
12
+ demo.launch(auth=(USERNAME,PASSWORD))