Update share_btn.py
Browse files- share_btn.py +3 -2
share_btn.py
CHANGED
|
@@ -25,12 +25,13 @@ share_js = """async () => {
|
|
| 25 |
|
| 26 |
async function getOutputVideoFile(videoURL, videoName){
|
| 27 |
|
| 28 |
-
fetch('https://fffiloni-one-shot-talking-face.hf.space/file=/tmp/${videoName})
|
| 29 |
.then(response => response.blob())
|
| 30 |
.then(blob => {
|
| 31 |
// do something with the blob;
|
| 32 |
console.log(blob);
|
| 33 |
-
|
|
|
|
| 34 |
return videoBlob;
|
| 35 |
});
|
| 36 |
|
|
|
|
| 25 |
|
| 26 |
async function getOutputVideoFile(videoURL, videoName){
|
| 27 |
|
| 28 |
+
fetch('https://fffiloni-one-shot-talking-face.hf.space/file=/tmp/${videoName}'')
|
| 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 |
|