jbilcke-hf HF staff commited on
Commit
6108eb4
·
verified ·
1 Parent(s): c3babc6

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -6
handler.py CHANGED
@@ -150,9 +150,6 @@ class EndpointHandler:
150
  # Initialize Varnish for post-processing
151
  self.varnish = Varnish(
152
  device="cuda" if torch.cuda.is_available() else "cpu",
153
- format="mp4",
154
- codec="h264",
155
- quality=17,
156
  model_base_dir="/repository/varnish",
157
 
158
  # there is currently a bug with MMAudio and/or torch and/or the weight format and/or version..
@@ -204,9 +201,7 @@ class EndpointHandler:
204
  # Convert to data URI
205
  video_uri = await result.write(
206
  type="data-uri",
207
- format="mp4",
208
- codec="h264",
209
- quality=23
210
  )
211
 
212
  # Collect metadata
 
150
  # Initialize Varnish for post-processing
151
  self.varnish = Varnish(
152
  device="cuda" if torch.cuda.is_available() else "cpu",
 
 
 
153
  model_base_dir="/repository/varnish",
154
 
155
  # there is currently a bug with MMAudio and/or torch and/or the weight format and/or version..
 
201
  # Convert to data URI
202
  video_uri = await result.write(
203
  type="data-uri",
204
+ quality=17
 
 
205
  )
206
 
207
  # Collect metadata