aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-22 23:13:16 +0000
committerBruno Seoane <brunoseoaneamarillo@gmail.com>2022-10-22 23:13:16 +0000
commit1b4d04737ac513cbd55958bb60a4f85166f3484b (patch)
tree97c3b557802f0ad12acd2c5ad81a988811f6963b
parent48dbf99e84045ee7af55bc5b1b86492a240e631e (diff)
downloadstable-diffusion-webui-gfx803-1b4d04737ac513cbd55958bb60a4f85166f3484b.tar.gz
stable-diffusion-webui-gfx803-1b4d04737ac513cbd55958bb60a4f85166f3484b.tar.bz2
stable-diffusion-webui-gfx803-1b4d04737ac513cbd55958bb60a4f85166f3484b.zip
Remove unused imports
-rw-r--r--modules/api/api.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/api/api.py b/modules/api/api.py
index 5b0c934e..a5136b4b 100644
--- a/modules/api/api.py
+++ b/modules/api/api.py
@@ -1,11 +1,9 @@
from modules.api.processing import StableDiffusionProcessingAPI
from modules.processing import StableDiffusionProcessingTxt2Img, process_images
from modules.sd_samplers import all_samplers
-from modules.extras import run_pnginfo
import modules.shared as shared
import uvicorn
-from fastapi import Body, APIRouter, HTTPException
-from fastapi.responses import JSONResponse
+from fastapi import APIRouter, HTTPException
from pydantic import BaseModel, Field, Json
import json
import io
@@ -18,7 +16,6 @@ class TextToImageResponse(BaseModel):
parameters: Json
info: Json
-
class Api:
def __init__(self, app, queue_lock):
self.router = APIRouter()