From 65423d2b33a2ea696e6d62186e12a93af272403d Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Sun, 20 Oct 2024 09:52:47 +0900 Subject: [PATCH] MIME type text/css (#16406) --- modules/ui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ui.py b/modules/ui.py index f48638f69..9a76b5fcd 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -44,6 +44,9 @@ mimetypes.add_type('application/javascript', '.mjs') 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