nickil commited on
Commit
e3b35ec
Β·
1 Parent(s): e4343d1

Update description

Browse files
Files changed (2) hide show
  1. app.py +3 -2
  2. network.py +1 -1
app.py CHANGED
@@ -12,18 +12,19 @@ from data import df
12
  from network import analysis
13
 
14
 
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()
 
12
  from network import analysis
13
 
14
 
15
+ with gr.Blocks(theme=gr.themes.Monochrome()) 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! In the given query, we see where the accused witches reside after filtering on the gender label (here, Female) and we show a breakdown of the class!")
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.Markdown("You can see the various parent-child-sibling-spouse relationships of the accused witches!")
28
  gr.HTML(analysis)
29
 
30
  demo.launch(app_kwargs={"routes": [PYGWALKER_ROUTE]}, share=True).queue()
network.py CHANGED
@@ -20,7 +20,7 @@ def analysis():
20
  if pd.notna(row[relationship]):
21
  G.add_edge(main_entity, row[relationship], relationship=str(relationship), label=relationship)
22
 
23
- plt.figure(figsize=(50, 20)) # Set the size of the plot
24
  # pos = nx.kamada_kawai_layout(G) # Compute the positions of the nodes
25
 
26
  # # Draw the nodes and edges with labels
 
20
  if pd.notna(row[relationship]):
21
  G.add_edge(main_entity, row[relationship], relationship=str(relationship), label=relationship)
22
 
23
+ plt.figure(figsize=(20, 10)) # Set the size of the plot
24
  # pos = nx.kamada_kawai_layout(G) # Compute the positions of the nodes
25
 
26
  # # Draw the nodes and edges with labels