Update app.py
Browse files
app.py
CHANGED
@@ -416,14 +416,14 @@ with gr.Blocks(css=".caption-label {display:none}") as demo:
|
|
416 |
interactive = True,
|
417 |
)
|
418 |
with gr.Row():
|
419 |
-
text_prompt = gr.Textbox(label="Event Prompt", placeholder=DEFAULT_PROMPT,
|
420 |
-
lines=1, elem_id="prompt-text-input", value = DEFAULT_PROMPT,
|
421 |
-
info = "You should set the prompt in format 'X do something', X is the role in the right."
|
422 |
-
)
|
423 |
role_name = gr.Textbox(label="Role (X)", placeholder=DEFAULT_ROLE, lines=1,
|
424 |
elem_id="prompt-text-input", value = DEFAULT_ROLE,
|
425 |
info = "You should set the Role (X) with some famous man (like: Confucius Superman)"
|
426 |
)
|
|
|
|
|
|
|
|
|
427 |
with gr.Row():
|
428 |
text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
|
429 |
|
@@ -438,4 +438,17 @@ with gr.Blocks(css=".caption-label {display:none}") as demo:
|
|
438 |
outputs=video_output)
|
439 |
|
440 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
demo.launch(show_api=False)
|
|
|
416 |
interactive = True,
|
417 |
)
|
418 |
with gr.Row():
|
|
|
|
|
|
|
|
|
419 |
role_name = gr.Textbox(label="Role (X)", placeholder=DEFAULT_ROLE, lines=1,
|
420 |
elem_id="prompt-text-input", value = DEFAULT_ROLE,
|
421 |
info = "You should set the Role (X) with some famous man (like: Confucius Superman)"
|
422 |
)
|
423 |
+
text_prompt = gr.Textbox(label="Event Prompt", placeholder=DEFAULT_PROMPT,
|
424 |
+
lines=1, elem_id="prompt-text-input", value = DEFAULT_PROMPT,
|
425 |
+
info = "You should set the prompt in format 'X do something', X is the role in the left."
|
426 |
+
)
|
427 |
with gr.Row():
|
428 |
text_button = gr.Button("Generate", variant='primary', elem_id="gen-button")
|
429 |
|
|
|
438 |
outputs=video_output)
|
439 |
|
440 |
|
441 |
+
gr.Examples(
|
442 |
+
[
|
443 |
+
["Pixel-Art-XL", "book_cover_dir/Blank.png", "Confucius", "X read a book"],
|
444 |
+
["Pixel-Art-XL", "book_cover_dir/Blank.png", "Superman", "X go to Istanbul"],
|
445 |
+
["Pixel-Art-XL", "book_cover_dir/Paint me a picture of the Great Wall of China in t.jpg", "Monk Xuanzang", "X went to the West to obtain Buddhist scriptures"],
|
446 |
+
["SD-1.5", "book_cover_dir/Blank.png", "Mickey Mouse", "X attends a party"],
|
447 |
+
["SD-1.5", "book_cover_dir/an illustration of a city.jpg", "The Eastern Roman Emperor", "X defeats Mongol Invaders"],
|
448 |
+
["SD-1.5", "book_cover_dir/River.png", "Napoleon", "X riding a horse"],
|
449 |
+
["SD-1.5", "book_cover_dir/seaport.png", "The Pope", "X is being crowned"],
|
450 |
+
],
|
451 |
+
inputs = [current_model, style_reference_input_image, role_name, text_prompt]
|
452 |
+
)
|
453 |
+
|
454 |
demo.launch(show_api=False)
|