Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,9 +126,7 @@ def check_duration(
|
|
| 126 |
use_refine,
|
| 127 |
progress
|
| 128 |
):
|
| 129 |
-
|
| 130 |
-
print("Resolution: ", resolution)
|
| 131 |
-
if use_refine and resolution=="480p":
|
| 132 |
return 240
|
| 133 |
elif resolution=="720p":
|
| 134 |
return 360
|
|
@@ -241,7 +239,7 @@ css = '''
|
|
| 241 |
'''
|
| 242 |
with gr.Blocks(css=css) as demo:
|
| 243 |
gr.Markdown("# 🎬 LongCat-Video")
|
| 244 |
-
gr.Markdown('''[[Model](https://huggingface.co/meituan-longcat/LongCat-Video)]''')
|
| 245 |
|
| 246 |
with gr.Tabs() as tabs:
|
| 247 |
with gr.TabItem("Image-to-Video", id=1):
|
|
@@ -280,7 +278,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 280 |
|
| 281 |
t2v_button = gr.Button("Generate Video", variant="primary")
|
| 282 |
with gr.Column(scale=3):
|
| 283 |
-
video_output_t2v = gr.Video(label="Generated
|
| 284 |
|
| 285 |
# --- Event Handlers ---
|
| 286 |
t2v_inputs = [
|
|
|
|
| 126 |
use_refine,
|
| 127 |
progress
|
| 128 |
):
|
| 129 |
+
if use_distill and resolution=="480p":
|
|
|
|
|
|
|
| 130 |
return 240
|
| 131 |
elif resolution=="720p":
|
| 132 |
return 360
|
|
|
|
| 239 |
'''
|
| 240 |
with gr.Blocks(css=css) as demo:
|
| 241 |
gr.Markdown("# 🎬 LongCat-Video")
|
| 242 |
+
gr.Markdown('''28B parameter video-generation model by Meituan — [[Model](https://huggingface.co/meituan-longcat/LongCat-Video)]''')
|
| 243 |
|
| 244 |
with gr.Tabs() as tabs:
|
| 245 |
with gr.TabItem("Image-to-Video", id=1):
|
|
|
|
| 278 |
|
| 279 |
t2v_button = gr.Button("Generate Video", variant="primary")
|
| 280 |
with gr.Column(scale=3):
|
| 281 |
+
video_output_t2v = gr.Video(label="Generated 6s video", interactive=False)
|
| 282 |
|
| 283 |
# --- Event Handlers ---
|
| 284 |
t2v_inputs = [
|