mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-12-06 07:12:10 +01:00
Add a missing import
This commit is contained in:
parent
330e2d36df
commit
c81c052f4e
|
|
@ -11,7 +11,11 @@ from PIL import Image
|
|||
from PIL.PngImagePlugin import PngInfo
|
||||
|
||||
from modules import shared, ui, utils
|
||||
from modules.image_models import load_image_model, unload_image_model
|
||||
from modules.image_models import (
|
||||
get_pipeline_type,
|
||||
load_image_model,
|
||||
unload_image_model
|
||||
)
|
||||
from modules.logging_colors import logger
|
||||
from modules.utils import gradio
|
||||
|
||||
|
|
@ -627,7 +631,6 @@ def generate(state):
|
|||
Automatically adjusts parameters based on pipeline type.
|
||||
"""
|
||||
import torch
|
||||
import numpy as np
|
||||
|
||||
model_name = state['image_model_menu']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue