Spaces:
Running
Running
Green banner
Browse files
app.py
CHANGED
@@ -81,20 +81,6 @@ def generate_video_gpu(
|
|
81 |
guidance_scale,
|
82 |
flow_shift,
|
83 |
embedded_guidance_scale
|
84 |
-
):
|
85 |
-
return None
|
86 |
-
|
87 |
-
@spaces.GPU(duration=120)
|
88 |
-
def generate_video_gpu2(
|
89 |
-
model,
|
90 |
-
prompt,
|
91 |
-
resolution,
|
92 |
-
video_length,
|
93 |
-
seed,
|
94 |
-
num_inference_steps,
|
95 |
-
guidance_scale,
|
96 |
-
flow_shift,
|
97 |
-
embedded_guidance_scale
|
98 |
):
|
99 |
print("generate_video_gpu (prompt: " + prompt + ")")
|
100 |
if torch.cuda.device_count() == 0:
|
@@ -145,7 +131,8 @@ def create_demo(model_path):
|
|
145 |
<p style="background-color: red;"><big><big><big><b>⚠️To use <i>Hunyuan Video</i>, <a href="https://huggingface.co/spaces/Fabrice-TIERCELIN/HunyuanVideo?duplicate=true">duplicate this space</a> and set a GPU with 80 GB VRAM.</b>
|
146 |
|
147 |
You can't use <i>Hunyuan Video</i> directly here because this space runs on a CPU, which is not enough for <i>Hunyuan Video</i>. Please provide <a href="https://huggingface.co/spaces/Fabrice-TIERCELIN/HunyuanVideo/discussions/new">feedback</a> if you have issues.
|
148 |
-
</big></big></big></p
|
|
|
149 |
""")
|
150 |
gr.Markdown("# Hunyuan Video Generation")
|
151 |
|
|
|
81 |
guidance_scale,
|
82 |
flow_shift,
|
83 |
embedded_guidance_scale
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
):
|
85 |
print("generate_video_gpu (prompt: " + prompt + ")")
|
86 |
if torch.cuda.device_count() == 0:
|
|
|
131 |
<p style="background-color: red;"><big><big><big><b>⚠️To use <i>Hunyuan Video</i>, <a href="https://huggingface.co/spaces/Fabrice-TIERCELIN/HunyuanVideo?duplicate=true">duplicate this space</a> and set a GPU with 80 GB VRAM.</b>
|
132 |
|
133 |
You can't use <i>Hunyuan Video</i> directly here because this space runs on a CPU, which is not enough for <i>Hunyuan Video</i>. Please provide <a href="https://huggingface.co/spaces/Fabrice-TIERCELIN/HunyuanVideo/discussions/new">feedback</a> if you have issues.
|
134 |
+
</big></big></big></p><br/><br/>
|
135 |
+
<p style="background-color: green;"><big>The space has been successfully deployed on A100 space. Then we can discuss about the quality of the generation.</big></p>
|
136 |
""")
|
137 |
gr.Markdown("# Hunyuan Video Generation")
|
138 |
|