Spaces:
Runtime error
Runtime error
Update app.py
Browse files* adding the code as it was before.
app.py
CHANGED
@@ -1,11 +1,17 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
-
from gradio_client import Client
|
4 |
|
5 |
-
|
6 |
-
|
|
|
7 |
HF_TOKEN_KEY = os.environ.get("PKNAYAK_HF_TOKEN")
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
-
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
|
|
3 |
|
4 |
+
|
5 |
+
USERNAME = os.environ.get("USERNAME")
|
6 |
+
PASSWORD = os.environ.get("PASSWORD")
|
7 |
HF_TOKEN_KEY = os.environ.get("PKNAYAK_HF_TOKEN")
|
8 |
|
9 |
+
with gr.Blocks() as demo:
|
10 |
+
gr.Markdown("# Welcome to the TradingGEN ")
|
11 |
+
|
12 |
+
gr.load(name="pknayak/newsAI_mvp",
|
13 |
+
src="spaces",
|
14 |
+
hf_token = HF_TOKEN_KEY)
|
15 |
|
16 |
+
|
17 |
+
demo.launch(auth=(USERNAME,PASSWORD))
|