Change layout
Browse files- app.py +11 -8
- config.json +1 -1
app.py
CHANGED
|
@@ -15,12 +15,15 @@ from network import analysis
|
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
# with gr.Tab("π About"):
|
| 17 |
# # gr.Markdown(ABOUT_TEXT)
|
| 18 |
-
with gr.
|
| 19 |
-
gr.
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
demo.launch(app_kwargs={"routes": [PYGWALKER_ROUTE]}).queue()
|
|
|
|
| 15 |
with gr.Blocks() as demo:
|
| 16 |
# with gr.Tab("π About"):
|
| 17 |
# # gr.Markdown(ABOUT_TEXT)
|
| 18 |
+
with gr.Row():
|
| 19 |
+
with gr.Column():
|
| 20 |
+
gr.Label("π Visually explore witches family data")
|
| 21 |
+
gr.Markdown("You can use drag-and-drop operations to explore the data, start your analysis now!")
|
| 22 |
+
pyg_app = get_html_on_gradio(df, spec="./config.json")
|
| 23 |
+
gr.HTML(pyg_app)
|
| 24 |
+
with gr.Row():
|
| 25 |
+
with gr.Column():
|
| 26 |
+
gr.Label("πͺ Visualize witches family connections")
|
| 27 |
+
gr.HTML(analysis)
|
| 28 |
|
| 29 |
+
demo.launch(app_kwargs={"routes": [PYGWALKER_ROUTE]}, share=True).queue()
|
config.json
CHANGED
|
@@ -270,7 +270,7 @@
|
|
| 270 |
"zeroScale": true,
|
| 271 |
"size": {
|
| 272 |
"mode": "auto",
|
| 273 |
-
"width":
|
| 274 |
"height": 800
|
| 275 |
},
|
| 276 |
"format": {},
|
|
|
|
| 270 |
"zeroScale": true,
|
| 271 |
"size": {
|
| 272 |
"mode": "auto",
|
| 273 |
+
"width": 1200,
|
| 274 |
"height": 800
|
| 275 |
},
|
| 276 |
"format": {},
|