ShankarC commited on
Commit
33cf95e
·
verified ·
1 Parent(s): 90bcf4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -4,9 +4,8 @@ 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()
 
4
 
5
  with gr.Blocks() as demo:
6
  gr.Markdown("### Embedded Private Space UI")
7
+ # Add the Dependency component directly
8
+ gr.Component.update(private_app := gr.Blocks.load(PRIVATE_SPACE_ID)) # This is just to assign and add
 
9
 
10
  if __name__ == "__main__":
11
  demo.launch()