Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,7 +95,9 @@ title = """
|
|
| 95 |
</h1>
|
| 96 |
</div>
|
| 97 |
<p style="margin-bottom: 10px; font-size: 94%">
|
| 98 |
-
Apply Instruct X-Decoder to a video
|
|
|
|
|
|
|
| 99 |
</p>
|
| 100 |
</div>
|
| 101 |
"""
|
|
@@ -104,7 +106,6 @@ article = """
|
|
| 104 |
|
| 105 |
<div class="footer">
|
| 106 |
<p>
|
| 107 |
-
Examples by <a href="https://twitter.com/CitizenPlain" target="_blank">Nathan Shipley</a> •
|
| 108 |
Follow <a href="https://twitter.com/fffiloni" target="_blank">Sylvain Filoni</a> for future updates 🤗
|
| 109 |
</p>
|
| 110 |
</div>
|
|
@@ -122,11 +123,6 @@ article = """
|
|
| 122 |
<image href="https://img.shields.io/badge/🤗 Spaces-Pix2Pix_Video-blue" src="https://img.shields.io/badge/🤗 Spaces-Pix2Pix_Video-blue.png" height="20"/>
|
| 123 |
</a>
|
| 124 |
</svg>
|
| 125 |
-
<svg height="20" width="162" style="margin-left:4px;margin-bottom: 6px;">
|
| 126 |
-
<a href="https://huggingface.co/spaces/timbrooks/instruct-pix2pix" target="_blank">
|
| 127 |
-
<image href="https://img.shields.io/badge/🤗 Spaces-Instruct_Pix2Pix-blue" src="https://img.shields.io/badge/🤗 Spaces-Instruct_Pix2Pix-blue.png" height="20"/>
|
| 128 |
-
</a>
|
| 129 |
-
</svg>
|
| 130 |
|
| 131 |
</div>
|
| 132 |
|
|
@@ -142,7 +138,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 142 |
video_inp = gr.Video(label="Video source", source="upload", type="filepath", elem_id="input-vid")
|
| 143 |
prompt = gr.Textbox(label="Prompt", placeholder="enter prompt", show_label=False, elem_id="prompt-in")
|
| 144 |
with gr.Row():
|
| 145 |
-
trim_in = gr.Slider(label="Cut video at (s)", minimun=1, maximum=3, step=1, value=1)
|
| 146 |
with gr.Column():
|
| 147 |
video_out = gr.Video(label="Pix2pix video result", elem_id="video-output")
|
| 148 |
|
|
|
|
| 95 |
</h1>
|
| 96 |
</div>
|
| 97 |
<p style="margin-bottom: 10px; font-size: 94%">
|
| 98 |
+
Apply Instruct X-Decoder to a video <br />
|
| 99 |
+
Note: this space loads the Instruct X-Decoder demo which is optimized to edit images<br />
|
| 100 |
+
Inference time may be super slow, results might not be consistent between frames
|
| 101 |
</p>
|
| 102 |
</div>
|
| 103 |
"""
|
|
|
|
| 106 |
|
| 107 |
<div class="footer">
|
| 108 |
<p>
|
|
|
|
| 109 |
Follow <a href="https://twitter.com/fffiloni" target="_blank">Sylvain Filoni</a> for future updates 🤗
|
| 110 |
</p>
|
| 111 |
</div>
|
|
|
|
| 123 |
<image href="https://img.shields.io/badge/🤗 Spaces-Pix2Pix_Video-blue" src="https://img.shields.io/badge/🤗 Spaces-Pix2Pix_Video-blue.png" height="20"/>
|
| 124 |
</a>
|
| 125 |
</svg>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
|
| 127 |
</div>
|
| 128 |
|
|
|
|
| 138 |
video_inp = gr.Video(label="Video source", source="upload", type="filepath", elem_id="input-vid")
|
| 139 |
prompt = gr.Textbox(label="Prompt", placeholder="enter prompt", show_label=False, elem_id="prompt-in")
|
| 140 |
with gr.Row():
|
| 141 |
+
trim_in = gr.Slider(label="Cut video at (s)", minimun=1, maximum=3, step=1, value=1, interactive=False)
|
| 142 |
with gr.Column():
|
| 143 |
video_out = gr.Video(label="Pix2pix video result", elem_id="video-output")
|
| 144 |
|