qqubb commited on
Commit
e3068b9
·
1 Parent(s): 316b9c0
Files changed (2) hide show
  1. .gitignore +2 -1
  2. app.py +13 -13
.gitignore CHANGED
@@ -1,3 +1,4 @@
1
  __pycache__
2
  compliancecards.code-workspace
3
- temp.ipynb
 
 
1
  __pycache__
2
  compliancecards.code-workspace
3
+ .ipynb_checkpoints
4
+ *.ipynb
app.py CHANGED
@@ -113,21 +113,21 @@ def process_files(data):
113
  results.append(msg)
114
  return results
115
 
116
- def extract_properties(data):
117
 
118
- flattened_data = []
119
-
120
- for category, items in data.items():
121
- for item, attributes in items.items():
122
- flattened_data.append({
123
- "Category": category,
124
- "Item": item,
125
- "Verbose": attributes["verbose"],
126
- "Value": attributes["value"]
127
- })
128
- df = pd.DataFrame(flattened_data)
129
 
130
- return df
131
 
132
  def sentence_builder(keys):
133
  return f"Selected options: {', '.join(keys)}"
 
113
  results.append(msg)
114
  return results
115
 
116
+ # def extract_properties(data):
117
 
118
+ # flattened_data = []
119
+
120
+ # for category, items in data.items():
121
+ # for item, attributes in items.items():
122
+ # flattened_data.append({
123
+ # "Category": category,
124
+ # "Item": item,
125
+ # "Verbose": attributes["verbose"],
126
+ # "Value": attributes["value"]
127
+ # })
128
+ # df = pd.DataFrame(flattened_data)
129
 
130
+ # return df
131
 
132
  def sentence_builder(keys):
133
  return f"Selected options: {', '.join(keys)}"