Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
with gr.Blocks() as demo:
|
| 6 |
gr.Markdown("### Embedded Private Space UI")
|
| 7 |
-
|
| 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()
|
|
|
|
| 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()
|