Spaces:
Running
Running
Moibe
commited on
Commit
•
f9e5067
1
Parent(s):
8d15e16
All in
Browse files- restauraAudio.py +21 -0
- run.py +6 -0
- urlchecador.py +9 -0
restauraAudio.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from roop.utilities import restore_audio
|
2 |
+
|
3 |
+
def restauraAudio(video):
|
4 |
+
|
5 |
+
#Antes tienes que ejecutar continuaVideo para armar el video que no se hizo directamente. Ponerle audio es el paso final.
|
6 |
+
#restore_audio("RutaDondeEstáElAudioOriginal","RutaDeDondeQuedoElResultadoFinal")
|
7 |
+
|
8 |
+
#Aquí pon el nombre final
|
9 |
+
audio_path = "D:/Esyle-Prod/videos/" + video +".mp4"
|
10 |
+
|
11 |
+
descripcion = "cuttedTest"
|
12 |
+
#Agregar como parámetro solo cuando llames a todo pipeline.py en una sola línea.
|
13 |
+
vid_final = video + "-" + descripcion
|
14 |
+
|
15 |
+
audio_target = "D:/Esyle-Prod/resultados/" + vid_final + ".mp4"
|
16 |
+
|
17 |
+
|
18 |
+
print("El tipo de audio_path es:")
|
19 |
+
print(type(audio_target))
|
20 |
+
print(audio_target)
|
21 |
+
restore_audio(audio_path, audio_target)
|
run.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
|
3 |
+
from roop import core
|
4 |
+
|
5 |
+
if __name__ == '__main__':
|
6 |
+
core.run()
|
urlchecador.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import requests
|
2 |
+
|
3 |
+
url = "https://huggingface.co/countfloyd/deepfake/resolve/main/inswapper_128.onnx"
|
4 |
+
|
5 |
+
response = requests.get(url)
|
6 |
+
|
7 |
+
content = response.content
|
8 |
+
|
9 |
+
print(content)
|