Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ import random
|
|
| 11 |
import gc
|
| 12 |
import copy
|
| 13 |
|
| 14 |
-
from gradio_client import Client
|
| 15 |
from torchao.quantization import quantize_
|
| 16 |
from torchao.quantization import Float8DynamicActivationFloat8WeightConfig
|
| 17 |
from torchao.quantization import Int8WeightOnlyConfig
|
|
@@ -354,7 +354,7 @@ with gr.Blocks() as demo:
|
|
| 354 |
flow_shift_slider = gr.Slider(minimum=0.5, maximum=15.0, step=0.1, value=3.0, label="Flow Shift")
|
| 355 |
|
| 356 |
frame_multi = gr.Number(
|
| 357 |
-
minimum=2, maximum=6, step=1, value=
|
| 358 |
info="2X = Double FPS (e.g. 16 -> 32). Higher multipliers create more intermediate frames."
|
| 359 |
)
|
| 360 |
|
|
@@ -364,7 +364,7 @@ with gr.Blocks() as demo:
|
|
| 364 |
file_output = gr.File(label="Download Video")
|
| 365 |
|
| 366 |
frame_button = gr.Button("Interpolate video", variant="secondary", visible=False)
|
| 367 |
-
frame_output = gr.File(label="
|
| 368 |
|
| 369 |
ui_inputs = [
|
| 370 |
input_image_component, last_image_component, prompt_input, steps_slider,
|
|
|
|
| 11 |
import gc
|
| 12 |
import copy
|
| 13 |
|
| 14 |
+
from gradio_client import Client, handle_file
|
| 15 |
from torchao.quantization import quantize_
|
| 16 |
from torchao.quantization import Float8DynamicActivationFloat8WeightConfig
|
| 17 |
from torchao.quantization import Int8WeightOnlyConfig
|
|
|
|
| 354 |
flow_shift_slider = gr.Slider(minimum=0.5, maximum=15.0, step=0.1, value=3.0, label="Flow Shift")
|
| 355 |
|
| 356 |
frame_multi = gr.Number(
|
| 357 |
+
minimum=2, maximum=6, step=1, value=4, label="Frame Multiplier for 'Generate Intermediate Frames'",
|
| 358 |
info="2X = Double FPS (e.g. 16 -> 32). Higher multipliers create more intermediate frames."
|
| 359 |
)
|
| 360 |
|
|
|
|
| 364 |
file_output = gr.File(label="Download Video")
|
| 365 |
|
| 366 |
frame_button = gr.Button("Interpolate video", variant="secondary", visible=False)
|
| 367 |
+
frame_output = gr.File(label="Generate Intermediate Frames", visible=False)
|
| 368 |
|
| 369 |
ui_inputs = [
|
| 370 |
input_image_component, last_image_component, prompt_input, steps_slider,
|