Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,17 +120,17 @@ def get_num_frames(duration_seconds: float) -> int:
|
|
| 120 |
@spaces.GPU
|
| 121 |
def generate_video(
|
| 122 |
prompt: str,
|
| 123 |
-
negative_prompt: str
|
| 124 |
-
enhance_prompt_option: bool
|
| 125 |
-
duration_seconds: float
|
| 126 |
-
guidance_scale: float
|
| 127 |
-
num_inference_steps: int
|
| 128 |
-
height: int
|
| 129 |
-
width: int
|
| 130 |
-
seed: int
|
| 131 |
-
randomize_seed: bool
|
| 132 |
-
progress=gr.Progress(track_tqdm=True),
|
| 133 |
-
) -> Tuple[str, int, str]:
|
| 134 |
"""Generate video from text prompt."""
|
| 135 |
|
| 136 |
if not prompt.strip():
|
|
@@ -710,7 +710,5 @@ with gr.Blocks() as demo:
|
|
| 710 |
outputs=outputs,
|
| 711 |
)
|
| 712 |
|
| 713 |
-
gr.api(generate_video, api_name="generate_video")
|
| 714 |
-
|
| 715 |
if __name__ == "__main__":
|
| 716 |
demo.queue().launch()
|
|
|
|
| 120 |
@spaces.GPU
|
| 121 |
def generate_video(
|
| 122 |
prompt: str,
|
| 123 |
+
negative_prompt: str,
|
| 124 |
+
enhance_prompt_option: bool,
|
| 125 |
+
duration_seconds: float,
|
| 126 |
+
guidance_scale: float,
|
| 127 |
+
num_inference_steps: int,
|
| 128 |
+
height: int,
|
| 129 |
+
width: int,
|
| 130 |
+
seed: int,
|
| 131 |
+
randomize_seed: bool,
|
| 132 |
+
progress: gr.Progress = gr.Progress(track_tqdm=True),
|
| 133 |
+
) -> Tuple[str, int, str, str]:
|
| 134 |
"""Generate video from text prompt."""
|
| 135 |
|
| 136 |
if not prompt.strip():
|
|
|
|
| 710 |
outputs=outputs,
|
| 711 |
)
|
| 712 |
|
|
|
|
|
|
|
| 713 |
if __name__ == "__main__":
|
| 714 |
demo.queue().launch()
|