Update app.py
Browse files
app.py
CHANGED
@@ -147,6 +147,6 @@ def plex(fpath, text, neg_prompt, modil, one, two, three, four, five):
|
|
147 |
export_to_video(canframes, canvid, fps=fps)
|
148 |
return video, canvid, orvid
|
149 |
|
150 |
-
iface = gr.Interface(fn=plex, inputs=[gr.File(label="Your video",interactive=True, file_types=
|
151 |
iface.queue(max_size=1,api_open=False)
|
152 |
iface.launch(max_threads=1)
|
|
|
147 |
export_to_video(canframes, canvid, fps=fps)
|
148 |
return video, canvid, orvid
|
149 |
|
150 |
+
iface = gr.Interface(fn=plex, inputs=[gr.File(label="Your video",interactive=True, file_types=['.mp4',]),gr.Textbox(label="prompt"),gr.Textbox(label="neg prompt"),gr.Dropdown(choices=models, label="Models", value=models[0], type="value"), gr.Slider(label="num inference steps", minimum=1, step=1, maximum=10, value=4), gr.Slider(label="Strength", minimum=0.01, step=0.01, maximum=20.00, value=5.00), gr.Slider(label="controlnet scale", minimum=0.01, step=0.01, maximum=0.99, value=0.80), gr.Slider(label="Guidance scale", minimum=0.01, step=0.01, maximum=10.00, value=2.00), gr.Slider(label="Manual seed", minimum=0, step=32, maximum=4836928, value=0)], outputs=[gr.Video(label="final"), gr.Video(label="canny vid"), gr.Video(label="orig")],description="Running on cpu, very slow! by JoPmt.")
|
151 |
iface.queue(max_size=1,api_open=False)
|
152 |
iface.launch(max_threads=1)
|