Spaces:
Runtime error
Runtime error
PixelistStudio
commited on
Commit
·
5a21032
1
Parent(s):
8838d0f
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,13 @@ from pathlib import Path
|
|
5 |
|
6 |
models = [
|
7 |
{"name": "هنری", "url": "DucHaiten/DucHaitenAIart"},
|
8 |
-
{"name": "
|
9 |
-
{"name": "
|
10 |
-
{"name": "
|
11 |
-
{"name": "
|
12 |
-
{"name": "
|
13 |
-
{"name": "
|
14 |
-
{"name": "
|
15 |
]
|
16 |
|
17 |
current_model = models[0]
|
@@ -47,7 +47,7 @@ with gr.Blocks() as myface:
|
|
47 |
|
48 |
with gr.Row():
|
49 |
with gr.Row():
|
50 |
-
input_text = gr.Textbox(label="
|
51 |
# Model selection dropdown
|
52 |
model_name1 = gr.Dropdown(
|
53 |
label="Choose Model",
|
@@ -57,25 +57,25 @@ with gr.Blocks() as myface:
|
|
57 |
interactive=True,
|
58 |
)
|
59 |
with gr.Row():
|
60 |
-
see_prompts = gr.Button("
|
61 |
-
run = gr.Button("
|
62 |
|
63 |
with gr.Row():
|
64 |
output1 = gr.Image(label="")
|
65 |
output2 = gr.Image(label="")
|
66 |
output3 = gr.Image(label="")
|
67 |
with gr.Row():
|
68 |
-
magic1 = gr.Textbox(label="
|
69 |
-
magic2 = gr.Textbox(label="
|
70 |
-
magic3 = gr.Textbox(label="
|
71 |
with gr.Row():
|
72 |
output4 = gr.Image(label="")
|
73 |
output5 = gr.Image(label="")
|
74 |
output6 = gr.Image(label="")
|
75 |
with gr.Row():
|
76 |
-
magic4 = gr.Textbox(label="
|
77 |
-
magic5 = gr.Textbox(label="
|
78 |
-
magic6 = gr.Textbox(label="
|
79 |
|
80 |
model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6])
|
81 |
|
|
|
5 |
|
6 |
models = [
|
7 |
{"name": "هنری", "url": "DucHaiten/DucHaitenAIart"},
|
8 |
+
{"name": "انیمه", "url": "DucHaiten/DH_ClassicAnime"},
|
9 |
+
{"name": "دنیای رویایی", "url": "DucHaiten/DucHaitenDreamWorld"},
|
10 |
+
{"name": "سفر", "url": "DucHaiten/DucHaitenJourney"},
|
11 |
+
{"name": "استایل مشابه من", "url": "DucHaiten/DucHaiten-StyleLikeMe"},
|
12 |
+
{"name": "خیلی بامزه", "url": "DucHaiten/DucHaitenSuperCute"},
|
13 |
+
{"name": "رندر سه بعدی ردشیفت ۷۶۸", "url": "nitrosocke/redshift-diffusion-768"},
|
14 |
+
{"name": "رندر سه بعدی ردشیفت", "url": "nitrosocke/redshift-diffusion"},
|
15 |
]
|
16 |
|
17 |
current_model = models[0]
|
|
|
47 |
|
48 |
with gr.Row():
|
49 |
with gr.Row():
|
50 |
+
input_text = gr.Textbox(label="ایده درخواستی", placeholder="", lines=1)
|
51 |
# Model selection dropdown
|
52 |
model_name1 = gr.Dropdown(
|
53 |
label="Choose Model",
|
|
|
57 |
interactive=True,
|
58 |
)
|
59 |
with gr.Row():
|
60 |
+
see_prompts = gr.Button("تولید خودکار شرح درخواست")
|
61 |
+
run = gr.Button("تولید تصاویر", variant="primary")
|
62 |
|
63 |
with gr.Row():
|
64 |
output1 = gr.Image(label="")
|
65 |
output2 = gr.Image(label="")
|
66 |
output3 = gr.Image(label="")
|
67 |
with gr.Row():
|
68 |
+
magic1 = gr.Textbox(label="شرح درخواست ۱", lines=2)
|
69 |
+
magic2 = gr.Textbox(label="شرح درخواست ۲", lines=2)
|
70 |
+
magic3 = gr.Textbox(label="شرح درخواست ۳", lines=2)
|
71 |
with gr.Row():
|
72 |
output4 = gr.Image(label="")
|
73 |
output5 = gr.Image(label="")
|
74 |
output6 = gr.Image(label="")
|
75 |
with gr.Row():
|
76 |
+
magic4 = gr.Textbox(label="شرح درخواست ۴", lines=2)
|
77 |
+
magic5 = gr.Textbox(label="شرح درخواست ۵", lines=2)
|
78 |
+
magic6 = gr.Textbox(label="شرح درخواست ۶", lines=2)
|
79 |
|
80 |
model_name1.change(set_model, inputs=model_name1, outputs=[output1, output2, output3, output4, output5, output6])
|
81 |
|