Zaherrr commited on
Commit
3e53e16
·
verified ·
1 Parent(s): ae8d8d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ def display_example(index):
50
  return img, graph_html_with_style, json_data, transformed_graph_data
51
 
52
  def create_interface():
53
- with gr.Blocks() as demo:
54
  gr.Markdown("# Knowledge Graph Visualizer")
55
 
56
  with gr.Row():
@@ -63,7 +63,7 @@ def create_interface():
63
 
64
  with gr.Row():
65
  image_output = gr.Image(type="pil", label="Image", height=300)
66
- graph_output = gr.HTML(label="Knowledge Graph")
67
 
68
  with gr.Row():
69
  json_output = gr.Code(language="json", label="Graph JSON Data")
 
50
  return img, graph_html_with_style, json_data, transformed_graph_data
51
 
52
  def create_interface():
53
+ with gr.Blocks(css="#graph-output {height: 500px; overflow: hidden;}") as demo:
54
  gr.Markdown("# Knowledge Graph Visualizer")
55
 
56
  with gr.Row():
 
63
 
64
  with gr.Row():
65
  image_output = gr.Image(type="pil", label="Image", height=300)
66
+ graph_output = gr.HTML(label="Knowledge Graph", elem_id="graph-output")
67
 
68
  with gr.Row():
69
  json_output = gr.Code(language="json", label="Graph JSON Data")