Skip to content

Commit

Permalink
MIME type text/css (AUTOMATIC1111#16406)
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w authored Oct 20, 2024
1 parent c2bc187 commit 65423d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
mimetypes.add_type('image/webp', '.webp')
mimetypes.add_type('image/avif', '.avif')

# override potentially incorrect mimetypes
mimetypes.add_type('text/css', '.css')

if not cmd_opts.share and not cmd_opts.listen:
# fix gradio phoning home
gradio.utils.version_check = lambda: None
Expand Down

0 comments on commit 65423d2

Please sign in to comment.