Zaherrr commited on
Commit
5e5196a
·
verified ·
1 Parent(s): 1394cbb

Update app.py

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