Write me a python code that processes a CSV file with the following structure ["Name","URL","Rating"], download each image under the URL row as save as PNG, use the Name as the file name and save it under a subfolder using the Rating as name, add a tkinter GUI to let me choose the CSV file and output path.
user
Sure, here is a sample code to accomplish this task:

import tkinter as tk
from tkinter import filedialog
import pandas as pd
import urllib.request

def process_csv():
    root = tk.Tk()
    root.withdraw()

    csv_file = filedialog.askopenfilename(title='Select the CSV file', filetypes=[('CSV Files', '*.csv')])
    output_path = filedialog.askdirectory(title='Select the output folder')

    df = pd.read_csv(csv_file)
    for i, row in df.iterrows():
        name = row['Name']
        url = row['URL']
        rating = row['Rating']
        
        folder = output_path + '/' + rating
        if not os.path.exists(folder):
            os.makedirs(folder)
        
        image_path = folder + '/' + name + '.png'
        urllib.request.urlretrieve(url, image_path)

process_csv()

This code uses the tkinter library to create a GUI that allows you to select the CSV file and output path. The code reads the CSV file using the pandas library, and then iterates over each row to download the image and save it as a PNG file. The name of the file is based on the "Name" column and the rating is used to create a subfolder in the output path.
assistant
How can I change it to support multiple csvs? reply only with the necessary changes
user