Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -382,7 +382,7 @@ def generate(
|
|
382 |
batch_options["prompt"] = options["prompt"][i:i+BATCH_SIZE]
|
383 |
if "negative_prompt" in batch_options:
|
384 |
batch_options["negative_prompt"] = options["negative_prompt"][i:i+BATCH_SIZE]
|
385 |
-
images.extend(
|
386 |
|
387 |
image_paths = [save_image(img) for img in images]
|
388 |
return image_paths, seed
|
@@ -1224,35 +1224,35 @@ def create_ui():
|
|
1224 |
artist=gr.State(None)
|
1225 |
like_res=gr.State([])
|
1226 |
dislike_res=gr.State([])
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
|
1243 |
|
1244 |
|
1245 |
-
|
1246 |
-
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
|
1257 |
|
1258 |
# with gr.Row(align="right",visible=False) as language_select:
|
|
|
382 |
batch_options["prompt"] = options["prompt"][i:i+BATCH_SIZE]
|
383 |
if "negative_prompt" in batch_options:
|
384 |
batch_options["negative_prompt"] = options["negative_prompt"][i:i+BATCH_SIZE]
|
385 |
+
images.extend(pipe(**batch_options).images,f"label {i}")
|
386 |
|
387 |
image_paths = [save_image(img) for img in images]
|
388 |
return image_paths, seed
|
|
|
1224 |
artist=gr.State(None)
|
1225 |
like_res=gr.State([])
|
1226 |
dislike_res=gr.State([])
|
1227 |
+
gr.Markdown(title)
|
1228 |
+
gr.Markdown(description)
|
1229 |
+
# with gr.Row(align="right", visible=False, elem_id="top_row") as top_row:
|
1230 |
+
# with gr.Column(scale=0.5):
|
1231 |
+
# # gr.Markdown("Left side content")
|
1232 |
+
|
1233 |
+
# with gr.Column(scale=0.5):
|
1234 |
+
# with gr.Row(align="right",visible=False) as language_select:
|
1235 |
+
# language = gr.Dropdown(
|
1236 |
+
# ['English', 'Chinese', 'French', "Spanish", "Arabic", "Portuguese", "Cantonese"],
|
1237 |
+
# value="English", label="Language", interactive=True)
|
1238 |
|
1239 |
+
# with gr.Row(align="right",visible=False) as autoplay:
|
1240 |
+
# auto_play = gr.Checkbox(label="Check to autoplay audio", value=False,scale=0.4)
|
1241 |
+
# output_audio = gr.HTML(label="Synthesised Audio",scale=0.6)
|
1242 |
|
1243 |
|
1244 |
|
1245 |
+
with gr.Row(align="right", visible=False, elem_id="top_row") as top_row:
|
1246 |
+
language = gr.Dropdown(
|
1247 |
+
['English', 'Chinese', 'French', "Spanish", "Arabic", "Portuguese", "Cantonese"],
|
1248 |
+
value="English", label="Language", interactive=True, scale=0.2, elem_classes="custom-language"
|
1249 |
+
)
|
1250 |
+
auto_play = gr.Checkbox(
|
1251 |
+
label="Check to autoplay audio", value=False, scale=0.4, elem_classes="custom-autoplay"
|
1252 |
+
)
|
1253 |
+
output_audio = gr.HTML(
|
1254 |
+
label="Synthesised Audio", scale=0.3, elem_classes="custom-output"
|
1255 |
+
)
|
1256 |
|
1257 |
|
1258 |
# with gr.Row(align="right",visible=False) as language_select:
|