Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -206,7 +206,8 @@ def interact_with_salesforce(mode, entry_type, quantity, extracted_text):
|
|
| 206 |
return f"✅ Record created in {object_name} with extracted valid attributes, Product Name: {product_name}, and Quantity: {quantity}."
|
| 207 |
|
| 208 |
except Exception as e:
|
| 209 |
-
return f"❌ Error interacting with Salesforce: {str(e)}"
|
|
|
|
| 210 |
|
| 211 |
if entry_type == "Sales":
|
| 212 |
object_name = "Inventory_Management__c"
|
|
|
|
| 206 |
return f"✅ Record created in {object_name} with extracted valid attributes, Product Name: {product_name}, and Quantity: {quantity}."
|
| 207 |
|
| 208 |
except Exception as e:
|
| 209 |
+
return f"❌ Error interacting with Salesforce: {str(e)}"
|
| 210 |
+
elif mode == "Exit":
|
| 211 |
|
| 212 |
if entry_type == "Sales":
|
| 213 |
object_name = "Inventory_Management__c"
|