Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def display_and_manage_cosmos_db():
|
|
49 |
# Update and Delete buttons for each item
|
50 |
if st.button(f"🗑️ Delete {item['id']}", key=f"delete_{item['id']}"):
|
51 |
partition_key = '/id'
|
52 |
-
container_client.delete_item(item=item['id'], partition_key)
|
53 |
st.success(f"Deleted Item: {item['id']}")
|
54 |
|
55 |
# Insert PNG Images with Unique Identifiers
|
|
|
49 |
# Update and Delete buttons for each item
|
50 |
if st.button(f"🗑️ Delete {item['id']}", key=f"delete_{item['id']}"):
|
51 |
partition_key = '/id'
|
52 |
+
container_client.delete_item(item=item['id'], partition_key=partition_key)
|
53 |
st.success(f"Deleted Item: {item['id']}")
|
54 |
|
55 |
# Insert PNG Images with Unique Identifiers
|