ShankarC commited on
Commit
e1e5071
·
verified ·
1 Parent(s): b7b59c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -1,10 +1,15 @@
 
1
  import gradio as gr
2
 
3
- private_space_url = "https://huggingface.co/spaces/AIStockAdvisor/StockAdvisorCL"
 
4
 
5
- with gr.Blocks() as demo:
6
- gr.Markdown("### Embedded Private Space UI")
7
- gr.HTML(f'<iframe src="{private_space_url}" width="100%" height="800" frameborder="0"></iframe>')
 
 
 
8
 
9
  if __name__ == "__main__":
10
  demo.launch()
 
1
+ import os
2
  import gradio as gr
3
 
4
+ # Replace with your private Space repo ID, e.g. "username/private-space-name"
5
+ PRIVATE_SPACE_ID = "AIStockAdvisor/StockAdvisorCL"
6
 
7
+ hf_token = os.getenv("HF_TOKEN") # Set this in your public Space secrets
8
+
9
+ demo = gr.Interface.load(
10
+ PRIVATE_SPACE_ID,
11
+ hf_token=hf_token
12
+ )
13
 
14
  if __name__ == "__main__":
15
  demo.launch()