Spaces:
Sleeping
Sleeping
qqubb commited on
Commit ·
e3068b9
1
Parent(s): 316b9c0
n/a
Browse files- .gitignore +2 -1
- app.py +13 -13
.gitignore
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
__pycache__
|
| 2 |
compliancecards.code-workspace
|
| 3 |
-
|
|
|
|
|
|
| 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 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
|
| 130 |
-
|
| 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)}"
|