ShankarC commited on
Commit
90bcf4f
·
verified ·
1 Parent(s): 8ce8f80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,9 +3,10 @@ import gradio as gr
3
  PRIVATE_SPACE_ID = "AIStockAdvisor/StockAdvisorCL"
4
 
5
  with gr.Blocks() as demo:
6
- # Load the private space as a Dependency component
7
  private_app = gr.Blocks.load(PRIVATE_SPACE_ID)
8
- # Include it in the Blocks context (no .launch or .render here)
 
9
 
10
  if __name__ == "__main__":
11
  demo.launch()
 
3
  PRIVATE_SPACE_ID = "AIStockAdvisor/StockAdvisorCL"
4
 
5
  with gr.Blocks() as demo:
6
+ gr.Markdown("### Embedded Private Space UI")
7
  private_app = gr.Blocks.load(PRIVATE_SPACE_ID)
8
+ # Add the component to the layout by calling it (like a function)
9
+ private_app()
10
 
11
  if __name__ == "__main__":
12
  demo.launch()