fffiloni commited on
Commit
95c806b
·
1 Parent(s): bde0c33

Update share_btn.py

Browse files
Files changed (1) hide show
  1. share_btn.py +8 -12
share_btn.py CHANGED
@@ -25,18 +25,14 @@ share_js = """async () => {
25
 
26
  async function getOutputVideoFile(videoURL, videoName){
27
 
28
- const res = await fetch(videoURL, { mode: 'no-cors'});
29
- const blob = await res.blob();
30
- console.log(blob);
31
- //const videoId = Date.now() % 200;
32
- const fileName = `talking-portrait-${videoName}`;
33
- const videoBlob = new File([blob], fileName, { type: 'video/mp4' });
34
-
35
- console.log(videoBlob);
36
-
37
-
38
-
39
- return videoBlob;
40
 
41
  }
42
 
 
25
 
26
  async function getOutputVideoFile(videoURL, videoName){
27
 
28
+ fetch('https://fffiloni-one-shot-talking-face.hf.space/file=/tmp/image_audio0ffba6d13938dc276c1658121514825da64bb96b.mp4')
29
+ .then(response => response.blob())
30
+ .then(blob => {
31
+ // do something with the blob;
32
+ console.log(blob);
33
+ let videoBlob = blob;
34
+ return videoBlob;
35
+ });
 
 
 
 
36
 
37
  }
38