Update app.py
Browse files
app.py
CHANGED
@@ -173,6 +173,6 @@ def plex(fpath, text, neg_prompt, modil, one, two, three, four, five):
|
|
173 |
export_to_video(canframes, canvid, fps=fps)
|
174 |
return video, canvid, orvid
|
175 |
|
176 |
-
iface = gr.Interface(fn=plex, inputs=[gr.File(label="Your video",interactive=True),gr.Textbox(label="prompt"),gr.Textbox(label="neg prompt"),gr.Dropdown(choices=models, label="some sd models", value=models[0], type="value"), gr.Slider(label="num inference steps", minimum=1, step=1, maximum=10, value=5), gr.Slider(label="prompt 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=1.00, value=0.80), gr.Slider(label="Guidance scale", minimum=0.01, step=0.01, maximum=10.00, value=2.00), gr.Slider(label="
|
177 |
iface.queue(max_size=1,api_open=False)
|
178 |
iface.launch(max_threads=1)
|
|
|
173 |
export_to_video(canframes, canvid, fps=fps)
|
174 |
return video, canvid, orvid
|
175 |
|
176 |
+
iface = gr.Interface(fn=plex, inputs=[gr.File(label="Your video",interactive=True),gr.Textbox(label="prompt"),gr.Textbox(label="neg prompt"),gr.Dropdown(choices=models, label="some sd models", value=models[0], type="value"), gr.Slider(label="num inference steps", minimum=1, step=1, maximum=10, value=5), gr.Slider(label="prompt 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=1.00, 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=1, step=32, maximum=4836928, value=1)], outputs=[gr.Video(label="final"), gr.Video(label="canny vid"), gr.Video(label="orig")],description="Running on cpu, very slow! by JoPmt.")
|
177 |
iface.queue(max_size=1,api_open=False)
|
178 |
iface.launch(max_threads=1)
|