Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,9 @@ 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(css="#graph-output {height: 500px; overflow: hidden;}") as demo:
|
|
|
|
|
54 |
gr.Markdown("# Knowledge Graph Visualizer")
|
55 |
|
56 |
with gr.Row():
|
@@ -62,8 +64,8 @@ def create_interface():
|
|
62 |
)
|
63 |
|
64 |
with gr.Row():
|
65 |
-
image_output = gr.Image(type="pil", label="Image"
|
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 |
+
with gr.Blocks() as demo:
|
55 |
+
|
56 |
gr.Markdown("# Knowledge Graph Visualizer")
|
57 |
|
58 |
with gr.Row():
|
|
|
64 |
)
|
65 |
|
66 |
with gr.Row():
|
67 |
+
image_output = gr.Image(type="pil", label="Image")#, height=300)
|
68 |
+
graph_output = gr.HTML(label="Knowledge Graph")#, elem_id="graph-output")
|
69 |
|
70 |
with gr.Row():
|
71 |
json_output = gr.Code(language="json", label="Graph JSON Data")
|