Zaherrr commited on
Commit
bea81d8
·
verified ·
1 Parent(s): 499f2d6

Update app.py

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