Hi I'm trying the following for api input
def upload_excel_parser(file: UploadFile = File(...)):
s_filename = file.filename
unique_id = str(uuid4())
project_id = s_filename + unique_id
df = pd.read_excel(file)
return "success"
also tried
df = pd.read_excel(file.file)
getting error ValueError: Excel file format cannot be determined, you must specify an engine manually.
Is there some error in reading the file?