Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -61,8 +61,8 @@ def query(prompt, model, is_negative=False, steps=20, cfg_scale=7, seed=None):
|
|
61 |
|
62 |
image_bytes = requests.post(API_URL, headers=headers, json=payload).content
|
63 |
image = Image.open(io.BytesIO(image_bytes))
|
64 |
-
return image
|
65 |
print(f'\033[1mГенерация {key} завершена!\033[0m ({prompt})')
|
|
|
66 |
|
67 |
|
68 |
css = """
|
|
|
61 |
|
62 |
image_bytes = requests.post(API_URL, headers=headers, json=payload).content
|
63 |
image = Image.open(io.BytesIO(image_bytes))
|
|
|
64 |
print(f'\033[1mГенерация {key} завершена!\033[0m ({prompt})')
|
65 |
+
return image
|
66 |
|
67 |
|
68 |
css = """
|