user-agent
commited on
Commit
•
c5bc110
1
Parent(s):
cec1e53
Update app.py
Browse files
app.py
CHANGED
@@ -66,14 +66,14 @@ def shot(input, category, level):
|
|
66 |
output_dict['attributes'] = common_result
|
67 |
output_dict['subcategory'] = category
|
68 |
|
69 |
-
# Convert the dictionary to a JSON-serializable format
|
70 |
-
try:
|
71 |
-
|
72 |
-
except TypeError as e:
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
return
|
77 |
|
78 |
|
79 |
|
|
|
66 |
output_dict['attributes'] = common_result
|
67 |
output_dict['subcategory'] = category
|
68 |
|
69 |
+
# # Convert the dictionary to a JSON-serializable format
|
70 |
+
# try:
|
71 |
+
# serialized_output = json.dumps(output_dict)
|
72 |
+
# except TypeError as e:
|
73 |
+
# print(f"Serialization Error: {e}")
|
74 |
+
# return {"error": "Serialization failed"}
|
75 |
+
|
76 |
+
return output_dict
|
77 |
|
78 |
|
79 |
|