App/Model.py
def load_gallery(self, fn, dfolder):
        """
        loads the gallery from a CSV file in UTF-8 encoding

        Args:
            fn (str): file name with .csv extension
            dfolder (file-object): valid dirpath str or array with
            valid folders.

        Raises:
            exp: raise a generic exception if something goes wrong
        """
        try:
            # read an existing CSV fileto update the dataframe
            ans = False
            gfp = os.path.join(os.getcwd(), dfolder, fn)
            self.data_frame = pd.read_csv(
                gfp,
                sep=",",
                encoding="utf-8",
                engine="python",
                quoting=csv.QUOTE_ALL
            )
            if self.data_frame is not None:
                ans = True
            return ans

        # exception handling
        except Exception as exp:
            Err.reraise(exp, "Gallery: load_gallery")

        loads the gallery from a CSV file in UTF-8 encoding

        Args:
            fn (str): file name with .csv extension
            dfolder (file-object): valid dirpath str or array with
            valid folders.

        Raises:
            exp: raise a generic exception if something goes wrong
        
loads the gallery from a CSV file in UTF-8 encoding
Args:
fn (str): file name with .csv extension
dfolder (file-object): valid dirpath str or array with
valid folders.

raise a generic exception if something goes wrong
loads the gallery from a CSV file in UTF - 8 encoding Args : fn ( str ) : file name with . csv extension dfolder ( file - object ) : valid dirpath str or array with valid folders . raise a generic exception if something goes wrong
def load_gallery(self, fn, dfolder):
        try:
            ans = False
            gfp = os.path.join(os.getcwd(), dfolder, fn)
            self.data_frame = pd.read_csv(
                gfp,
                sep=",",
                encoding="utf-8",
                engine="python",
                quoting=csv.QUOTE_ALL
            )
            if self.data_frame is not None:
                ans = True
            return ans
        except Exception as exp:
            Err.reraise(exp, "Gallery: load_gallery")
def load_gallery ( self , fn , dfolder ) : try : ans = False gfp = os . path . join ( os . getcwd ( ) , dfolder , fn ) self . data_frame = pd . read_csv ( gfp , sep = "," , encoding = "utf-8" , engine = "python" , quoting = csv . QUOTE_ALL ) if self . data_frame is not None : ans = True return ans except Exception as exp : Err . reraise ( exp , "Gallery: load_gallery" )
loads the gallery from a CSV file in UTF-8 encoding
Args:
fn (str): file name with .csv extension
dfolder (file-object): valid dirpath str or array with
valid folders.
loads the gallery from a CSV file in UTF - 8 encoding Args : fn ( str ) : file name with . csv extension dfolder ( file - object ) : valid dirpath str or array with valid folders .
"""
        loads the gallery from a CSV file in UTF-8 encoding

        Args:
            fn (str): file name with .csv extension
            dfolder (file-object): valid dirpath str or array with
            valid folders.

        Raises:
            exp: raise a generic exception if something goes wrong
        """ # read an existing CSV fileto update the dataframe # exception handling
self
fn
dfolder