Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -199,8 +199,8 @@ footer {
|
|
199 |
}
|
200 |
"""
|
201 |
|
202 |
-
with gr.Blocks(css=css, title="
|
203 |
-
gr.Markdown("#
|
204 |
|
205 |
x_concept_1 = gr.State("")
|
206 |
x_concept_2 = gr.State("")
|
@@ -243,7 +243,6 @@ with gr.Blocks(css=css, title="타임 스트림") as demo:
|
|
243 |
info="Maximum strength for each direction (above 2.5 may be unstable)"
|
244 |
)
|
245 |
submit = gr.Button(english_labels["Generate directions"], size="lg", variant="primary")
|
246 |
-
|
247 |
# Advanced Options Panel
|
248 |
with gr.Accordion(label=english_labels["Advanced options"], open=False, elem_classes="advanced-panel"):
|
249 |
with gr.Row():
|
@@ -318,19 +317,20 @@ with gr.Blocks(css=css, title="타임 스트림") as demo:
|
|
318 |
label=english_labels["From 1st to 2nd direction"]
|
319 |
)
|
320 |
|
321 |
-
# Examples Section
|
322 |
gr.Examples(
|
323 |
examples=examples,
|
324 |
inputs=[prompt, concept_1, concept_2, x],
|
|
|
325 |
fn=generate,
|
326 |
outputs=[
|
327 |
x_concept_1, x_concept_2, avg_diff_x,
|
328 |
-
output_video, #
|
329 |
-
image_strip, #
|
330 |
-
total_images,
|
331 |
-
post_generation_image,
|
332 |
-
post_generation_slider,
|
333 |
-
seed
|
334 |
],
|
335 |
cache_examples="lazy"
|
336 |
)
|
@@ -345,8 +345,8 @@ with gr.Blocks(css=css, title="타임 스트림") as demo:
|
|
345 |
],
|
346 |
outputs=[
|
347 |
x_concept_1, x_concept_2, avg_diff_x,
|
348 |
-
output_video, # video
|
349 |
-
image_strip, # canvas
|
350 |
total_images,
|
351 |
post_generation_image,
|
352 |
post_generation_slider,
|
|
|
199 |
}
|
200 |
"""
|
201 |
|
202 |
+
with gr.Blocks(css=css, title="Time Stream") as demo:
|
203 |
+
gr.Markdown("# Time Stream")
|
204 |
|
205 |
x_concept_1 = gr.State("")
|
206 |
x_concept_2 = gr.State("")
|
|
|
243 |
info="Maximum strength for each direction (above 2.5 may be unstable)"
|
244 |
)
|
245 |
submit = gr.Button(english_labels["Generate directions"], size="lg", variant="primary")
|
|
|
246 |
# Advanced Options Panel
|
247 |
with gr.Accordion(label=english_labels["Advanced options"], open=False, elem_classes="advanced-panel"):
|
248 |
with gr.Row():
|
|
|
317 |
label=english_labels["From 1st to 2nd direction"]
|
318 |
)
|
319 |
|
320 |
+
# Examples Section with select_on_click enabled
|
321 |
gr.Examples(
|
322 |
examples=examples,
|
323 |
inputs=[prompt, concept_1, concept_2, x],
|
324 |
+
select_on_click=True,
|
325 |
fn=generate,
|
326 |
outputs=[
|
327 |
x_concept_1, x_concept_2, avg_diff_x,
|
328 |
+
output_video, # video output
|
329 |
+
image_strip, # canvas (image strip)
|
330 |
+
total_images,
|
331 |
+
post_generation_image,
|
332 |
+
post_generation_slider,
|
333 |
+
seed
|
334 |
],
|
335 |
cache_examples="lazy"
|
336 |
)
|
|
|
345 |
],
|
346 |
outputs=[
|
347 |
x_concept_1, x_concept_2, avg_diff_x,
|
348 |
+
output_video, # video output
|
349 |
+
image_strip, # canvas (image strip)
|
350 |
total_images,
|
351 |
post_generation_image,
|
352 |
post_generation_slider,
|