Skip to content

Commit 72e0215

Browse files
Fixed import errors in 'examples/server-async/serverasync.py'
1 parent ac5c9e6 commit 72e0215

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

examples/server-async/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ The server configuration can be modified in `serverasync.py` through the `Server
146146
```python
147147
@dataclass
148148
class ServerConfigModels:
149-
model: str = 'stabilityai/stable-diffusion-3-medium'
149+
model: str = 'stabilityai/stable-diffusion-3.5-medium'
150150
type_models: str = 't2im'
151151
host: str = '0.0.0.0'
152152
port: int = 8500

examples/server-async/serverasync.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
from fastapi.middleware.cors import CORSMiddleware
44
from fastapi.concurrency import run_in_threadpool
55
from pydantic import BaseModel
6-
from .Pipelines import ModelPipelineInitializer
7-
from .utils import Utils, RequestScopedPipeline
6+
from Pipelines import ModelPipelineInitializer
7+
from utils import Utils, RequestScopedPipeline
88
import logging
9-
from diffusers import *
109
import random
1110
from dataclasses import dataclass
1211
import os
@@ -20,7 +19,7 @@
2019

2120
@dataclass
2221
class ServerConfigModels:
23-
model: str = 'stabilityai/stable-diffusion-3-medium'
22+
model: str = 'stabilityai/stable-diffusion-3.5-medium'
2423
type_models: str = 't2im'
2524
constructor_pipeline: Optional[Type] = None
2625
custom_pipeline: Optional[Type] = None

0 commit comments

Comments
 (0)