vumichien commited on
Commit
0e95a4e
·
verified ·
1 Parent(s): cd441fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -134,7 +134,7 @@ def get_file_extension(filename: str) -> str:
134
 
135
  def is_valid_image(extension: str) -> bool:
136
  """Check if the file extension is a valid image type."""
137
- return extension in ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp']
138
 
139
  def authenticate(request: Request):
140
  """Check if user is authenticated."""
 
134
 
135
  def is_valid_image(extension: str) -> bool:
136
  """Check if the file extension is a valid image type."""
137
+ return extension in ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp', '.svg']
138
 
139
  def authenticate(request: Request):
140
  """Check if user is authenticated."""