eaglelandsonce commited on
Commit
700258a
1 Parent(s): f98abe0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -2
app.py CHANGED
@@ -102,8 +102,25 @@ def main():
102
 
103
  with col3:
104
  st.header("Check Your HIN Number")
105
- # Placeholder for HIN number functionality
106
- st.write("Enter your HIN number to check details...")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  hin_number = st.text_input("Enter your HIN number:")
108
  if hin_number:
109
  st.write("HIN number details...") # Placeholder for actual HIN number check
 
102
 
103
  with col3:
104
  st.header("Check Your HIN Number")
105
+ config = Config(height=400, width=400, nodeHighlightBehavior=True, highlightColor="#F7A7A6", directed=True,
106
+ collapsible=True)
107
+
108
+ #based on Insurance Fraud
109
+ with open("data/fraud.json", encoding="utf8") as f:
110
+ fraud_file = json.loads(f.read())
111
+ st.session_state['fraud_topic'] = fraud_file
112
+ fraud_store = TripleStore()
113
+ for sub_graph in fraud_file["children"]:
114
+ fraud_store.add_triple(fraud_file["name"], "has_subgroup", sub_graph["name"], picture=fraud_file["img"])
115
+ for node in sub_graph["children"]:
116
+ node1 = node["role"]
117
+ link = "blongs_to"
118
+ node2 = sub_graph["name"]
119
+ pic = node["img"]
120
+ fraud_store.add_triple(node1, link, node2, picture=pic)
121
+ agraph(list(fraud_store.getNodes()), (fraud_store.getEdges()), config)
122
+
123
+
124
  hin_number = st.text_input("Enter your HIN number:")
125
  if hin_number:
126
  st.write("HIN number details...") # Placeholder for actual HIN number check