Spaces:
Running
on
Zero
Running
on
Zero
Commit
Β·
ec89a42
1
Parent(s):
87239c9
disable video generation on-the-fly generation feature
Browse files
serve/gradio_web_video_generation.py
CHANGED
|
@@ -18,6 +18,8 @@ from .vote_utils import (
|
|
| 18 |
)
|
| 19 |
from functools import partial
|
| 20 |
|
|
|
|
|
|
|
| 21 |
|
| 22 |
def build_side_by_side_ui_anony_vg(models):
|
| 23 |
notice_markdown = """
|
|
@@ -91,17 +93,17 @@ Find out who is the π₯conditional video generation models! More models are goi
|
|
| 91 |
with gr.Row():
|
| 92 |
textbox = gr.Textbox(
|
| 93 |
show_label=False,
|
| 94 |
-
placeholder=
|
| 95 |
container=True,
|
| 96 |
elem_id="input_box",
|
| 97 |
)
|
| 98 |
-
send_btn = gr.Button(value="Send", variant="primary", scale=0)
|
| 99 |
draw_btn = gr.Button(value="π² Random sample", variant="primary", scale=0)
|
| 100 |
|
| 101 |
|
| 102 |
with gr.Row():
|
| 103 |
clear_btn = gr.Button(value="π² New Round", interactive=False)
|
| 104 |
-
regenerate_btn = gr.Button(value="π Regenerate", interactive=False)
|
| 105 |
# share_btn = gr.Button(value="π· Share")
|
| 106 |
|
| 107 |
#gr.Markdown(acknowledgment_md, elem_id="ack_markdown")
|
|
@@ -278,16 +280,16 @@ def build_side_by_side_ui_named_vg(models):
|
|
| 278 |
with gr.Row():
|
| 279 |
textbox = gr.Textbox(
|
| 280 |
show_label=False,
|
| 281 |
-
placeholder=
|
| 282 |
elem_id="input_box"
|
| 283 |
)
|
| 284 |
-
send_btn = gr.Button(value="Send", variant="primary", scale=0)
|
| 285 |
draw_btn = gr.Button(value="π² Random sample", variant="primary", scale=0)
|
| 286 |
|
| 287 |
|
| 288 |
with gr.Row():
|
| 289 |
clear_btn = gr.Button(value="ποΈ Clear history", interactive=False)
|
| 290 |
-
regenerate_btn = gr.Button(value="π Regenerate", interactive=False)
|
| 291 |
# share_btn = gr.Button(value="π· Share")
|
| 292 |
|
| 293 |
#gr.Markdown(acknowledgment_md, elem_id="ack_markdown")
|
|
@@ -439,11 +441,11 @@ def build_single_model_ui_vg(models, add_promotion_links=False):
|
|
| 439 |
with gr.Row():
|
| 440 |
textbox = gr.Textbox(
|
| 441 |
show_label=False,
|
| 442 |
-
placeholder=
|
| 443 |
elem_id="input_box"
|
| 444 |
)
|
| 445 |
|
| 446 |
-
send_btn = gr.Button(value="Send", variant="primary", scale=0)
|
| 447 |
draw_btn = gr.Button(value="π² Random sample", variant="primary", scale=0)
|
| 448 |
|
| 449 |
|
|
@@ -454,7 +456,7 @@ def build_single_model_ui_vg(models, add_promotion_links=False):
|
|
| 454 |
upvote_btn = gr.Button(value="π Upvote", interactive=False)
|
| 455 |
downvote_btn = gr.Button(value="π Downvote", interactive=False)
|
| 456 |
flag_btn = gr.Button(value="β οΈ Flag", interactive=False)
|
| 457 |
-
regenerate_btn = gr.Button(value="π Regenerate", interactive=False)
|
| 458 |
clear_btn = gr.Button(value="ποΈ Clear history", interactive=False)
|
| 459 |
|
| 460 |
if add_promotion_links:
|
|
|
|
| 18 |
)
|
| 19 |
from functools import partial
|
| 20 |
|
| 21 |
+
# prompt_placeholder = "π Enter your prompt and press ENTER"
|
| 22 |
+
prompt_placeholder = "π On-the-fly generation is disabled for text-to-video generation, please try random sample"
|
| 23 |
|
| 24 |
def build_side_by_side_ui_anony_vg(models):
|
| 25 |
notice_markdown = """
|
|
|
|
| 93 |
with gr.Row():
|
| 94 |
textbox = gr.Textbox(
|
| 95 |
show_label=False,
|
| 96 |
+
placeholder=prompt_placeholder,
|
| 97 |
container=True,
|
| 98 |
elem_id="input_box",
|
| 99 |
)
|
| 100 |
+
send_btn = gr.Button(value="Send", variant="primary", scale=0, visible=False)
|
| 101 |
draw_btn = gr.Button(value="π² Random sample", variant="primary", scale=0)
|
| 102 |
|
| 103 |
|
| 104 |
with gr.Row():
|
| 105 |
clear_btn = gr.Button(value="π² New Round", interactive=False)
|
| 106 |
+
regenerate_btn = gr.Button(value="π Regenerate", interactive=False, visible=False)
|
| 107 |
# share_btn = gr.Button(value="π· Share")
|
| 108 |
|
| 109 |
#gr.Markdown(acknowledgment_md, elem_id="ack_markdown")
|
|
|
|
| 280 |
with gr.Row():
|
| 281 |
textbox = gr.Textbox(
|
| 282 |
show_label=False,
|
| 283 |
+
placeholder=prompt_placeholder,
|
| 284 |
elem_id="input_box"
|
| 285 |
)
|
| 286 |
+
send_btn = gr.Button(value="Send", variant="primary", scale=0, visible=False)
|
| 287 |
draw_btn = gr.Button(value="π² Random sample", variant="primary", scale=0)
|
| 288 |
|
| 289 |
|
| 290 |
with gr.Row():
|
| 291 |
clear_btn = gr.Button(value="ποΈ Clear history", interactive=False)
|
| 292 |
+
regenerate_btn = gr.Button(value="π Regenerate", interactive=False, visible=False)
|
| 293 |
# share_btn = gr.Button(value="π· Share")
|
| 294 |
|
| 295 |
#gr.Markdown(acknowledgment_md, elem_id="ack_markdown")
|
|
|
|
| 441 |
with gr.Row():
|
| 442 |
textbox = gr.Textbox(
|
| 443 |
show_label=False,
|
| 444 |
+
placeholder=prompt_placeholder,
|
| 445 |
elem_id="input_box"
|
| 446 |
)
|
| 447 |
|
| 448 |
+
send_btn = gr.Button(value="Send", variant="primary", scale=0, visible=False)
|
| 449 |
draw_btn = gr.Button(value="π² Random sample", variant="primary", scale=0)
|
| 450 |
|
| 451 |
|
|
|
|
| 456 |
upvote_btn = gr.Button(value="π Upvote", interactive=False)
|
| 457 |
downvote_btn = gr.Button(value="π Downvote", interactive=False)
|
| 458 |
flag_btn = gr.Button(value="β οΈ Flag", interactive=False)
|
| 459 |
+
regenerate_btn = gr.Button(value="π Regenerate", interactive=False, visible=False)
|
| 460 |
clear_btn = gr.Button(value="ποΈ Clear history", interactive=False)
|
| 461 |
|
| 462 |
if add_promotion_links:
|