Spaces:
Paused
Paused
Update app_gradio.py
Browse files- app_gradio.py +23 -21
app_gradio.py
CHANGED
@@ -243,26 +243,7 @@ def create_gradio_interface():
|
|
243 |
step=0.1,
|
244 |
label="Motion Strength"
|
245 |
)
|
246 |
-
|
247 |
-
gr.Examples(
|
248 |
-
examples=[
|
249 |
-
['./static/examples/sketch1.png', 'The camel walks slowly'],
|
250 |
-
['./static/examples/sketch2.png', 'The wine in the wine glass sways from side to side'],
|
251 |
-
['./static/examples/sketch3.png', 'The squirrel is eating a nut'],
|
252 |
-
['./static/examples/sketch4.png', 'The surfer surfs on the waves'],
|
253 |
-
['./static/examples/sketch5.png', 'A galloping horse'],
|
254 |
-
['./static/examples/sketch6.png', 'The cat walks forward'],
|
255 |
-
['./static/examples/sketch7.png', 'The eagle flies in the sky'],
|
256 |
-
['./static/examples/sketch8.png', 'The flower is blooming slowly'],
|
257 |
-
['./static/examples/sketch9.png', 'The reindeer looks around'],
|
258 |
-
['./static/examples/sketch10.png', 'The cloud floats in the sky'],
|
259 |
-
['./static/examples/sketch11.png', 'The jazz saxophonist performs on stage with a rhythmic sway, his upper body sways subtly to the rhythm of the music.'],
|
260 |
-
['./static/examples/sketch12.png', 'The biker rides on the road']
|
261 |
-
],
|
262 |
-
inputs=[input_sketch, motion_prompt],
|
263 |
-
examples_per_page=4
|
264 |
-
)
|
265 |
-
|
266 |
with gr.Column():
|
267 |
with gr.Tab("Main"):
|
268 |
input_sketch = gr.Image(
|
@@ -291,7 +272,28 @@ def create_gradio_interface():
|
|
291 |
elem_classes="generate-btn",
|
292 |
interactive=True,
|
293 |
)
|
294 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
output_gallery = gr.Gallery(
|
296 |
label="Results",
|
297 |
elem_classes="output-gallery",
|
|
|
243 |
step=0.1,
|
244 |
label="Motion Strength"
|
245 |
)
|
246 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
with gr.Column():
|
248 |
with gr.Tab("Main"):
|
249 |
input_sketch = gr.Image(
|
|
|
272 |
elem_classes="generate-btn",
|
273 |
interactive=True,
|
274 |
)
|
275 |
+
|
276 |
+
with gr.Row():
|
277 |
+
with gr.Column():
|
278 |
+
gr.Examples(
|
279 |
+
examples=[
|
280 |
+
['./static/examples/sketch1.png', 'The camel walks slowly'],
|
281 |
+
['./static/examples/sketch2.png', 'The wine in the wine glass sways from side to side'],
|
282 |
+
['./static/examples/sketch3.png', 'The squirrel is eating a nut'],
|
283 |
+
['./static/examples/sketch4.png', 'The surfer surfs on the waves'],
|
284 |
+
['./static/examples/sketch5.png', 'A galloping horse'],
|
285 |
+
['./static/examples/sketch6.png', 'The cat walks forward'],
|
286 |
+
['./static/examples/sketch7.png', 'The eagle flies in the sky'],
|
287 |
+
['./static/examples/sketch8.png', 'The flower is blooming slowly'],
|
288 |
+
['./static/examples/sketch9.png', 'The reindeer looks around'],
|
289 |
+
['./static/examples/sketch10.png', 'The cloud floats in the sky'],
|
290 |
+
['./static/examples/sketch11.png', 'The jazz saxophonist performs on stage with a rhythmic sway, his upper body sways subtly to the rhythm of the music.'],
|
291 |
+
['./static/examples/sketch12.png', 'The biker rides on the road']
|
292 |
+
],
|
293 |
+
inputs=[input_sketch, motion_prompt],
|
294 |
+
examples_per_page=4
|
295 |
+
)
|
296 |
+
with gr.Column():
|
297 |
output_gallery = gr.Gallery(
|
298 |
label="Results",
|
299 |
elem_classes="output-gallery",
|