Spaces:
Running on Zero
Running on Zero
update app
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ CHUNK_SECONDS = float(os.environ.get("H3_CHUNK_SECONDS", "14"))
|
|
| 54 |
CONDITIONER_MAX_FRAMES = int(os.environ.get("H3_CONDITIONER_MAX_FRAMES", "345"))
|
| 55 |
|
| 56 |
GPU_DURATION_CHOICES = (60, 90, 120, 150, 180, 250)
|
| 57 |
-
DEFAULT_GPU_DURATION =
|
| 58 |
|
| 59 |
OUTPUT_DIR = os.path.join(tempfile.gettempdir(), "h3-outputs")
|
| 60 |
|
|
@@ -550,6 +550,8 @@ def cost_hint(canvas, duration, mode, steps, first_frame, last_frame, with_audio
|
|
| 550 |
|
| 551 |
|
| 552 |
with gr.Blocks(title="MiniMax-H3-Turbo-LoRA-Fast") as demo:
|
|
|
|
|
|
|
| 553 |
with gr.Row():
|
| 554 |
with gr.Column(scale=3):
|
| 555 |
prompt = gr.Textbox(
|
|
@@ -572,7 +574,7 @@ with gr.Blocks(title="MiniMax-H3-Turbo-LoRA-Fast") as demo:
|
|
| 572 |
label="Length (s)", info="Rounded up to the next 17n+5 at 24 fps.",
|
| 573 |
)
|
| 574 |
with gr.Row():
|
| 575 |
-
with_audio = gr.Checkbox(label="Generate audio", value=
|
| 576 |
upsample = gr.Checkbox(label="Prompt upsampling (+15–50s)", value=False)
|
| 577 |
with gr.Accordion("Advanced", open=False):
|
| 578 |
steps = gr.Slider(2, 12, value=6, step=1, label="Steps")
|
|
|
|
| 54 |
CONDITIONER_MAX_FRAMES = int(os.environ.get("H3_CONDITIONER_MAX_FRAMES", "345"))
|
| 55 |
|
| 56 |
GPU_DURATION_CHOICES = (60, 90, 120, 150, 180, 250)
|
| 57 |
+
DEFAULT_GPU_DURATION = 120
|
| 58 |
|
| 59 |
OUTPUT_DIR = os.path.join(tempfile.gettempdir(), "h3-outputs")
|
| 60 |
|
|
|
|
| 550 |
|
| 551 |
|
| 552 |
with gr.Blocks(title="MiniMax-H3-Turbo-LoRA-Fast") as demo:
|
| 553 |
+
gr.Markdown("""# MiniMax-H3-Turbo-LoRA-Fast""")
|
| 554 |
+
|
| 555 |
with gr.Row():
|
| 556 |
with gr.Column(scale=3):
|
| 557 |
prompt = gr.Textbox(
|
|
|
|
| 574 |
label="Length (s)", info="Rounded up to the next 17n+5 at 24 fps.",
|
| 575 |
)
|
| 576 |
with gr.Row():
|
| 577 |
+
with_audio = gr.Checkbox(label="Generate audio", value=False)
|
| 578 |
upsample = gr.Checkbox(label="Prompt upsampling (+15–50s)", value=False)
|
| 579 |
with gr.Accordion("Advanced", open=False):
|
| 580 |
steps = gr.Slider(2, 12, value=6, step=1, label="Steps")
|