Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,15 @@ def create_interface():
|
|
68 |
with gr.Row():
|
69 |
image_output = gr.Image(type="pil", label="Image", height=300)
|
70 |
graph_output = gr.HTML(label="Knowledge Graph")
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
index_slider.change(
|
73 |
fn=display_example,
|
74 |
inputs=[index_slider],
|
|
|
68 |
with gr.Row():
|
69 |
image_output = gr.Image(type="pil", label="Image", height=300)
|
70 |
graph_output = gr.HTML(label="Knowledge Graph")
|
71 |
+
|
72 |
+
with gr.Row():
|
73 |
+
json_output = gr.Code(language="json", label="Graph JSON Data")
|
74 |
+
text_output = gr.Textbox(
|
75 |
+
label="Graph Text Data",
|
76 |
+
placeholder="Text data will appear here",
|
77 |
+
interactive=False,
|
78 |
+
)
|
79 |
+
|
80 |
index_slider.change(
|
81 |
fn=display_example,
|
82 |
inputs=[index_slider],
|