Spaces:
Build error
Build error
Update app.py
#1
by Ajay98 - opened
8 unmodified lines910111213148 unmodified linesimport matplotlib.pyplot as pltfrom io import BytesIOfrom fuzzywuzzy import process# Attribute mappings: readable names to Salesforce API namesATTRIBUTE_MAPPING = {8 unmodified lines910111213141516171819202122232425268 unmodified linesimport matplotlib.pyplot as pltfrom io import BytesIOfrom fuzzywuzzy import processgr.Image(type="numpy",source="camera", # Enables camera accesslabel="Upload or Take a Photo",tool="editor", # Optional: Add editing tools for cropping or annotationsmirror_webcam=False # Ensures the image is not mirrored)from PIL import ImageOpsdef correct_orientation(image):return ImageOps.mirror(image)# Attribute mappings: readable names to Salesforce API namesATTRIBUTE_MAPPING = {
app.py+12