Spaces:
Running
Running
Commit
·
d8ff96c
1
Parent(s):
fabab2d
FIX
Browse files
app.py
CHANGED
|
@@ -62,7 +62,7 @@ def run_glitch(
|
|
| 62 |
wobble_jitter: Optional[float],
|
| 63 |
wobble_f1: Optional[float],
|
| 64 |
wobble_f2: Optional[float],
|
| 65 |
-
|
| 66 |
):
|
| 67 |
if not duration or duration <= 0:
|
| 68 |
raise gr.Error("Duration must be > 0 seconds")
|
|
@@ -102,8 +102,8 @@ def run_glitch(
|
|
| 102 |
cmd += ["--wobble_f1", str(wobble_f1)]
|
| 103 |
if wobble_f2 is not None:
|
| 104 |
cmd += ["--wobble_f2", str(wobble_f2)]
|
| 105 |
-
if
|
| 106 |
-
cmd += ["--
|
| 107 |
|
| 108 |
# Run
|
| 109 |
print("Running:", shlex.join(cmd))
|
|
@@ -141,7 +141,7 @@ def build_ui():
|
|
| 141 |
wobble_jitter = gr.Number(value=0.0, precision=2, label="wobble_jitter")
|
| 142 |
wobble_f1 = gr.Number(value=0.0, precision=2, label="wobble_f1")
|
| 143 |
wobble_f2 = gr.Number(value=0.0, precision=2, label="wobble_f2")
|
| 144 |
-
|
| 145 |
|
| 146 |
run_btn = gr.Button("Generate")
|
| 147 |
output_file = gr.File(label="Output video")
|
|
@@ -163,7 +163,7 @@ def build_ui():
|
|
| 163 |
wobble_jitter,
|
| 164 |
wobble_f1,
|
| 165 |
wobble_f2,
|
| 166 |
-
|
| 167 |
],
|
| 168 |
outputs=[output_file, url_box],
|
| 169 |
)
|
|
|
|
| 62 |
wobble_jitter: Optional[float],
|
| 63 |
wobble_f1: Optional[float],
|
| 64 |
wobble_f2: Optional[float],
|
| 65 |
+
blur: Optional[float],
|
| 66 |
):
|
| 67 |
if not duration or duration <= 0:
|
| 68 |
raise gr.Error("Duration must be > 0 seconds")
|
|
|
|
| 102 |
cmd += ["--wobble_f1", str(wobble_f1)]
|
| 103 |
if wobble_f2 is not None:
|
| 104 |
cmd += ["--wobble_f2", str(wobble_f2)]
|
| 105 |
+
if blur is not None:
|
| 106 |
+
cmd += ["--blur", str(blur)]
|
| 107 |
|
| 108 |
# Run
|
| 109 |
print("Running:", shlex.join(cmd))
|
|
|
|
| 141 |
wobble_jitter = gr.Number(value=0.0, precision=2, label="wobble_jitter")
|
| 142 |
wobble_f1 = gr.Number(value=0.0, precision=2, label="wobble_f1")
|
| 143 |
wobble_f2 = gr.Number(value=0.0, precision=2, label="wobble_f2")
|
| 144 |
+
blur = gr.Number(value=0.0, precision=2, label="blur")
|
| 145 |
|
| 146 |
run_btn = gr.Button("Generate")
|
| 147 |
output_file = gr.File(label="Output video")
|
|
|
|
| 163 |
wobble_jitter,
|
| 164 |
wobble_f1,
|
| 165 |
wobble_f2,
|
| 166 |
+
blur,
|
| 167 |
],
|
| 168 |
outputs=[output_file, url_box],
|
| 169 |
)
|