fffiloni commited on
Commit
a5aabd2
·
1 Parent(s): 0898ceb

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +4 -3
share_btn.py CHANGED
@@ -23,15 +23,16 @@ share_js = """async () => {
23
  return url;
24
  }
25
 
26
- async function getOutputVideoFile(videoURL, videoName){
27
 
28
- fetch('https://fffiloni-one-shot-talking-face.hf.space/file=/tmp/' + videoName, { mode: 'no-cors'})
29
  .then(response => response.blob())
30
  .then(blob => {
31
  // do something with the blob;
32
  console.log(blob);
33
 
34
- let videoBlob = URL.createObjectURL(blob);;
 
35
  return videoBlob;
36
  });
37
 
 
23
  return url;
24
  }
25
 
26
+ async function getOutputVideoFile(videoURL){
27
 
28
+ fetch('videoURL, { mode: 'no-cors'})
29
  .then(response => response.blob())
30
  .then(blob => {
31
  // do something with the blob;
32
  console.log(blob);
33
 
34
+ let videoBlob = URL.createObjectURL(blob);
35
+ console.log(videoBlob);
36
  return videoBlob;
37
  });
38