Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ sf = Salesforce(
|
|
| 26 |
def log_intruder_to_salesforce(frame_id):
|
| 27 |
try:
|
| 28 |
sf.Hotel_Security_Alert__c.create({
|
| 29 |
-
'Alert_Type__c': '
|
| 30 |
'Detection_Timestamp__c': datetime.utcnow().isoformat(),
|
| 31 |
'HF_Detection_ID__c': f'intruder_{frame_id}_{uuid.uuid4()}',
|
| 32 |
'Confidence_Score__c': 0.90,
|
|
|
|
| 26 |
def log_intruder_to_salesforce(frame_id):
|
| 27 |
try:
|
| 28 |
sf.Hotel_Security_Alert__c.create({
|
| 29 |
+
'Alert_Type__c': 'Critical',
|
| 30 |
'Detection_Timestamp__c': datetime.utcnow().isoformat(),
|
| 31 |
'HF_Detection_ID__c': f'intruder_{frame_id}_{uuid.uuid4()}',
|
| 32 |
'Confidence_Score__c': 0.90,
|