fffiloni commited on
Commit
212122b
1 Parent(s): 8a651c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
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(f"your_file" + {i} + ".jpeg")
59
- return f"your_file" + {i} + ".jpeg"
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
- Pix2Pix Video
156
  </h1>
157
  </div>
158
  <p style="margin-bottom: 10px; font-size: 94%">
159
- Apply Instruct Pix2Pix Diffusion to a video
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> •&nbsp;
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>