Spaces:
Sleeping
Sleeping
vl
Browse files- routes/textToImage.py +1 -1
routes/textToImage.py
CHANGED
@@ -9,7 +9,7 @@ router = APIRouter()
|
|
9 |
async def text_to_image(t2i_body: TextToImageRequest):
|
10 |
client = InferenceClient(model=t2i_body.model)
|
11 |
res = client.text_to_image(
|
12 |
-
|
13 |
negative_prompt=t2i_body.negative_prompt,
|
14 |
height=t2i_body.height,
|
15 |
width=t2i_body.width,
|
|
|
9 |
async def text_to_image(t2i_body: TextToImageRequest):
|
10 |
client = InferenceClient(model=t2i_body.model)
|
11 |
res = client.text_to_image(
|
12 |
+
t2i_body.prompt,
|
13 |
negative_prompt=t2i_body.negative_prompt,
|
14 |
height=t2i_body.height,
|
15 |
width=t2i_body.width,
|