ShankarC commited on
Commit
ff9446c
·
verified ·
1 Parent(s): ea4fd52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -1,14 +1,10 @@
1
  import gradio as gr
2
 
3
- # Replace with your private Space repo ID, e.g. "username/private-space-name"
4
- PRIVATE_SPACE_ID = "ShankarC/StockAdvisorCL"
5
 
6
  with gr.Blocks() as demo:
7
- # Load the private Space app component
8
- private_app_component = gr.Blocks.load(PRIVATE_SPACE_ID)
9
-
10
- # Add the loaded component to your Blocks app
11
- private_app_component.render()
12
 
13
  if __name__ == "__main__":
14
  demo.launch()
 
1
  import gradio as gr
2
 
3
+ private_space_url = "https://huggingface.co/spaces/ShankarC/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()