Update app.py
Browse files
app.py
CHANGED
|
@@ -55,8 +55,8 @@ def controlnet(i, prompt, seed_in):
|
|
| 55 |
image_resolution, detect_resolution, ddim_steps, scale, seed_in, eta)
|
| 56 |
print(result[0])
|
| 57 |
im = Image.fromarray(result[0])
|
| 58 |
-
im.save(
|
| 59 |
-
return
|
| 60 |
|
| 61 |
|
| 62 |
def get_frames(video_in):
|
|
@@ -152,11 +152,11 @@ title = """
|
|
| 152 |
"
|
| 153 |
>
|
| 154 |
<h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
|
| 155 |
-
|
| 156 |
</h1>
|
| 157 |
</div>
|
| 158 |
<p style="margin-bottom: 10px; font-size: 94%">
|
| 159 |
-
Apply
|
| 160 |
</p>
|
| 161 |
</div>
|
| 162 |
"""
|
|
@@ -165,7 +165,6 @@ article = """
|
|
| 165 |
|
| 166 |
<div class="footer">
|
| 167 |
<p>
|
| 168 |
-
Examples by <a href="https://twitter.com/CitizenPlain" target="_blank">Nathan Shipley</a> •
|
| 169 |
Follow <a href="https://twitter.com/fffiloni" target="_blank">Sylvain Filoni</a> for future updates 🤗
|
| 170 |
</p>
|
| 171 |
</div>
|
|
|
|
| 55 |
image_resolution, detect_resolution, ddim_steps, scale, seed_in, eta)
|
| 56 |
print(result[0])
|
| 57 |
im = Image.fromarray(result[0])
|
| 58 |
+
im.save("your_file" + str(i) + ".jpeg")
|
| 59 |
+
return "your_file" + str(i) + ".jpeg"
|
| 60 |
|
| 61 |
|
| 62 |
def get_frames(video_in):
|
|
|
|
| 152 |
"
|
| 153 |
>
|
| 154 |
<h1 style="font-weight: 900; margin-bottom: 7px; margin-top: 5px;">
|
| 155 |
+
ControlNet Video
|
| 156 |
</h1>
|
| 157 |
</div>
|
| 158 |
<p style="margin-bottom: 10px; font-size: 94%">
|
| 159 |
+
Apply ControlNet to a video
|
| 160 |
</p>
|
| 161 |
</div>
|
| 162 |
"""
|
|
|
|
| 165 |
|
| 166 |
<div class="footer">
|
| 167 |
<p>
|
|
|
|
| 168 |
Follow <a href="https://twitter.com/fffiloni" target="_blank">Sylvain Filoni</a> for future updates 🤗
|
| 169 |
</p>
|
| 170 |
</div>
|