prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  [Bug]: vae does not appear when clicking refresh button in models/VAE
  ### Is there an existing issue for this?
  
  - [X] I have searched the existing issues and checked the recent builds/commits
  
  ### What happened?
  
  Pressing the button to update the VAE list does not update the VAE list.
  
  ### Steps to reproduce the problem
  
  1. Insert new VAE file to models/VAE
  2. Press buttion Refresh VAE list 
  
  ### What should have happened?
  
  Apprear new VAE file in list
  
  ### Commit where the problem happens
  
  Lastest
  
  ### What platforms do you use to access the UI ?
  
  _No response_
  
  ### What browsers do you use to access the UI ?
  
  _No response_
  
  ### Command Line Arguments
  
  ```Shell
  No
  ```
  
  
  ### List of extensions
  
  No
  
  ### Console logs
  
  ```Shell
  Nothing
  ```
  
  
  ### Additional information
  
  _No response_
  
  </issue>
  <code>
  [start of modules/shared_items.py]
  1 
  2 
  3 def realesrgan_models_names():
  4     import modules.realesrgan_model
  5     return [x.name for x in modules.realesrgan_model.get_realesrgan_models(None)]
  6 
  7 
  8 def postprocessing_scripts():
  9     import modules.scripts
  10 
  11     return modules.scripts.scripts_postproc.scripts
  12 
  13 
  14 def sd_vae_items():
  15     import modules.sd_vae
  16 
  17     return ["Automatic", "None"] + list(modules.sd_vae.vae_dict)
  18 
  19 
  20 def refresh_vae_list():
  21     import modules.sd_vae
  22 
  23     return modules.sd_vae.refresh_vae_list
  24
  [end of modules/shared_items.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/modules/shared_items.py b/modules/shared_items.py
  --- a/modules/shared_items.py
  +++ b/modules/shared_items.py
  @@ -20,4 +20,4 @@
   def refresh_vae_list():
       import modules.sd_vae
   
  -    return modules.sd_vae.refresh_vae_list
  +    return modules.sd_vae.refresh_vae_list()
  
verification_info: {"golden_diff": "diff --git a/modules/shared_items.py b/modules/shared_items.py\n--- a/modules/shared_items.py\n+++ b/modules/shared_items.py\n@@ -20,4 +20,4 @@\n def refresh_vae_list():\r\n     import modules.sd_vae\r\n \r\n-    return modules.sd_vae.refresh_vae_list\r\n+    return modules.sd_vae.refresh_vae_list()\n", "issue": "[Bug]: vae does not appear when clicking refresh button in models/VAE\n### Is there an existing issue for this?\n\n- [X] I have searched the existing issues and checked the recent builds/commits\n\n### What happened?\n\nPressing the button to update the VAE list does not update the VAE list.\n\n### Steps to reproduce the problem\n\n1. Insert new VAE file to models/VAE\r\n2. Press buttion Refresh VAE list \n\n### What should have happened?\n\nApprear new VAE file in list\n\n### Commit where the problem happens\n\nLastest\n\n### What platforms do you use to access the UI ?\n\n_No response_\n\n### What browsers do you use to access the UI ?\n\n_No response_\n\n### Command Line Arguments\n\n```Shell\nNo\n```\n\n\n### List of extensions\n\nNo\n\n### Console logs\n\n```Shell\nNothing\n```\n\n\n### Additional information\n\n_No response_\n", "before_files": [{"content": "\r\n\r\ndef realesrgan_models_names():\r\n    import modules.realesrgan_model\r\n    return [x.name for x in modules.realesrgan_model.get_realesrgan_models(None)]\r\n\r\n\r\ndef postprocessing_scripts():\r\n    import modules.scripts\r\n\r\n    return modules.scripts.scripts_postproc.scripts\r\n\r\n\r\ndef sd_vae_items():\r\n    import modules.sd_vae\r\n\r\n    return [\"Automatic\", \"None\"] + list(modules.sd_vae.vae_dict)\r\n\r\n\r\ndef refresh_vae_list():\r\n    import modules.sd_vae\r\n\r\n    return modules.sd_vae.refresh_vae_list\r\n", "path": "modules/shared_items.py"}]}