From c02ef0f4286c618d30ee028778f58ca7809c7d93 Mon Sep 17 00:00:00 2001 From: Billy Cao Date: Sun, 18 Dec 2022 20:51:59 +0800 Subject: [PATCH] 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