Spaces:
Runtime error
Runtime error
update app.py
Browse files* adding the credentials to the secrets and using them in the app
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=(
|
|
|
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))
|