File size: 705 Bytes
e1a22ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import pandas as pd
import numpy as np
import gradio as gr
import pygwalker as pyg
from pygwalker.api.gradio import PYGWALKER_ROUTE, get_html_on_gradio
from data import df
from network import analysis
with gr.Blocks() as demo:
# with gr.Tab("π About"):
# # gr.Markdown(ABOUT_TEXT)
with gr.Tab("π Dashboard"):
gr.Label("Visually explore witches family data")
gr.Markdown("You can use drag-and-drop operations to explore the data, start your analysis now!")
pyg_app = get_html_on_gradio(df, spec="./config.json")
gr.HTML(pyg_app)
with gr.Tab("πͺ Family Connection"):
gr.HTML(analysis)
demo.launch(app_kwargs={"routes": [PYGWALKER_ROUTE]}).queue()
|