Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,14 +25,18 @@ def render(prompt, negative_prompt, output_format, output_size, style, lighting,
|
|
25 |
return None
|
26 |
|
27 |
# UI
|
28 |
-
gr.Interface(
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
25 |
return None
|
26 |
|
27 |
# UI
|
28 |
+
gr.Interface(
|
29 |
+
render,
|
30 |
+
inputs=[
|
31 |
+
gr.inputs.Textbox(placeholder="Введите описание изображения"),
|
32 |
+
gr.inputs.Textbox(placeholder="Введите отрицательный образ"),
|
33 |
+
gr.inputs.Dropdown(["png", "jpg", "webp", "gif"]),
|
34 |
+
gr.inputs.Dropdown(["256x256", "512x512", "1024x1024", "2048x2048"]),
|
35 |
+
gr.inputs.Dropdown(["photorealistic", "cartoon", "anime", "sketch", "painting"]),
|
36 |
+
gr.inputs.Dropdown(["natural", "studio", "night", "random"]),
|
37 |
+
gr.inputs.Dropdown(["white", "black", "random"]),
|
38 |
+
gr.inputs.Dropdown(["front", "top", "side"]),
|
39 |
+
gr.inputs.Dropdown(["0", "45", "90"]),
|
40 |
+
],
|
41 |
+
outputs=gr.Image()
|
42 |
+
).launch()
|