Spaces:
Runtime error
Runtime error
Commit
•
3401498
1
Parent(s):
9167495
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,6 @@ from diffusers.utils import export_to_video
|
|
10 |
import spaces
|
11 |
import uuid
|
12 |
|
13 |
-
import subprocess
|
14 |
-
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
15 |
-
|
16 |
is_canonical = True if os.environ.get("SPACE_ID") == "Pyramid-Flow/pyramid-flow" else False
|
17 |
|
18 |
# Constants
|
@@ -118,7 +115,7 @@ with gr.Blocks() as demo:
|
|
118 |
t2v_video_guidance_scale = gr.Slider(minimum=1, maximum=15, value=5, step=0.1, label="Video Guidance Scale")
|
119 |
t2v_generate_btn = gr.Button("Generate Video")
|
120 |
with gr.Column():
|
121 |
-
t2v_output = gr.Video(label=f"Generated Video at {'8fps' if
|
122 |
gr.HTML("""
|
123 |
<div style="display: flex; flex-direction: column;justify-content: center; align-items: center; text-align: center;">
|
124 |
<p style="display: flex;gap: 6px;">
|
|
|
10 |
import spaces
|
11 |
import uuid
|
12 |
|
|
|
|
|
|
|
13 |
is_canonical = True if os.environ.get("SPACE_ID") == "Pyramid-Flow/pyramid-flow" else False
|
14 |
|
15 |
# Constants
|
|
|
115 |
t2v_video_guidance_scale = gr.Slider(minimum=1, maximum=15, value=5, step=0.1, label="Video Guidance Scale")
|
116 |
t2v_generate_btn = gr.Button("Generate Video")
|
117 |
with gr.Column():
|
118 |
+
t2v_output = gr.Video(label=f"Generated Video at {'8fps' if is_canonical else '24fps'}")
|
119 |
gr.HTML("""
|
120 |
<div style="display: flex; flex-direction: column;justify-content: center; align-items: center; text-align: center;">
|
121 |
<p style="display: flex;gap: 6px;">
|