Update app.py
Browse files
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 |
-
|
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"
|
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")
|