mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
Optimize imports
This commit is contained in:
parent
d2f10d50bf
commit
7bcdc10539
@ -1,15 +1,10 @@
|
|||||||
import re
|
import re
|
||||||
import requests
|
import requests
|
||||||
import base64
|
|
||||||
from fastapi import (
|
from fastapi import (
|
||||||
FastAPI,
|
FastAPI,
|
||||||
Request,
|
Request,
|
||||||
Depends,
|
Depends,
|
||||||
HTTPException,
|
HTTPException,
|
||||||
status,
|
|
||||||
UploadFile,
|
|
||||||
File,
|
|
||||||
Form,
|
|
||||||
)
|
)
|
||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
|
|
||||||
@ -20,7 +15,6 @@ from utils.utils import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
from apps.images.utils.comfyui import ImageGenerationPayload, comfyui_generate_image
|
from apps.images.utils.comfyui import ImageGenerationPayload, comfyui_generate_image
|
||||||
from utils.misc import calculate_sha256
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
Loading…
Reference in New Issue
Block a user