AD2000X commited on
Commit
52c73e3
·
verified ·
1 Parent(s): b0e836b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -246,13 +246,13 @@ def run_entity_exploration():
246
 
247
  # Debug output: Confirm loaded entities
248
  st.write("Loaded entities:", entities)
249
-
250
- st.write(\"Ontology classes:\", ontology_manager.get_classes())
251
-
252
  # 額外 debug: 顯示所有節點類型與 class_type
253
  for node, attr in ontology_manager.graph.nodes(data=True):
254
- if attr.get(\"type\") == \"instance\":
255
- st.write(\"Found instance:\", node, \"of class:\", attr.get(\"class_type\"))
256
 
257
  # Create a dropdown selection box
258
  selected_entity = st.selectbox("Select Entity", entities)
 
246
 
247
  # Debug output: Confirm loaded entities
248
  st.write("Loaded entities:", entities)
249
+
250
+ st.write("Ontology classes:", ontology_manager.get_classes())
251
+
252
  # 額外 debug: 顯示所有節點類型與 class_type
253
  for node, attr in ontology_manager.graph.nodes(data=True):
254
+ if attr.get("type") == "instance":
255
+ st.write("Found instance:", node, "of class:", attr.get("class_type"))
256
 
257
  # Create a dropdown selection box
258
  selected_entity = st.selectbox("Select Entity", entities)