From 35f0698ae85571f688e82447c989b75e4fe81b0d Mon Sep 17 00:00:00 2001 From: Billy Cao Date: Sun, 18 Dec 2022 20:45:30 +0800 Subject: [PATCH 1/2] Dirty fix for missing PIL supported file extensions --- launch.py | 1 + 1 file changed, 1 insertion(+) diff --git a/launch.py b/launch.py index ad9ddd5a..581a21ff 100644 --- a/launch.py +++ b/launch.py @@ -7,6 +7,7 @@ import shlex import platform import argparse import json +from PIL import Image dir_repos = "repositories" dir_extensions = "extensions" From c02ef0f4286c618d30ee028778f58ca7809c7d93 Mon Sep 17 00:00:00 2001 From: Billy Cao Date: Sun, 18 Dec 2022 20:51:59 +0800 Subject: [PATCH 2/2] Fix PIL being imported before its installed (for new users only) --- launch.py | 1 - modules/shared.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/launch.py b/launch.py index 581a21ff..ad9ddd5a 100644 --- a/launch.py +++ b/launch.py @@ -7,7 +7,6 @@ import shlex import platform import argparse import json -from PIL import Image dir_repos = "repositories" dir_extensions = "extensions" diff --git a/modules/shared.py b/modules/shared.py index c36ee211..734ea2fe 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -5,6 +5,7 @@ import os import sys import time +from PIL import Image import gradio as gr import tqdm