pknayak commited on
Commit
36f9914
1 Parent(s): a0cf22e

Update app.py

Browse files

* adding the code as it was before.

Files changed (1) hide show
  1. app.py +11 -5
app.py CHANGED
@@ -1,11 +1,17 @@
1
  import gradio as gr
2
  import os
3
- from gradio_client import Client
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
- client = Client("pknayak/newsAI_mvp", hf_token=HF_TOKEN_KEY)
 
 
 
 
 
10
 
11
- client.view_api(all_endpoints=True)
 
 
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))