gopichandra commited on
Commit
ff9b953
·
verified ·
1 Parent(s): 4706140

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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)}"elif mode == "Exit":
 
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"