Moibe commited on
Commit
5739d02
1 Parent(s): 46563c9

Remove stress test

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -9,6 +9,10 @@ def greet(input1, input2):
9
  #Aquí voy a poner como lo maneja roop en hf.
10
  #https://huggingface.co/spaces/ezioruan/roop/blob/main/app.py
11
 
 
 
 
 
12
  source_path = "input.jpg"
13
  target_path = "target.jpg"
14
 
@@ -17,7 +21,7 @@ def greet(input1, input2):
17
  source_image.save(source_path)
18
  target_image = Image.fromarray(input2)
19
  print("Esto es target_image: ", target_image)
20
- #target_image.save(target_path)
21
 
22
  print("source_path: ", source_path)
23
  print("target_path: ", target_path)
@@ -25,9 +29,6 @@ def greet(input1, input2):
25
 
26
  return target_path
27
 
28
- #def carga_consola():
29
- # return "Hola Mundo"
30
-
31
  #iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
32
  #gr.show()
33
 
 
9
  #Aquí voy a poner como lo maneja roop en hf.
10
  #https://huggingface.co/spaces/ezioruan/roop/blob/main/app.py
11
 
12
+ #Ésta es la forma correcta de guardar imagenes.
13
+ #Para los videos es directo.
14
+ #Y al parecer PIL ya lo tiene instalado.
15
+
16
  source_path = "input.jpg"
17
  target_path = "target.jpg"
18
 
 
21
  source_image.save(source_path)
22
  target_image = Image.fromarray(input2)
23
  print("Esto es target_image: ", target_image)
24
+ target_image.save(target_path)
25
 
26
  print("source_path: ", source_path)
27
  print("target_path: ", target_path)
 
29
 
30
  return target_path
31
 
 
 
 
32
  #iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
33
  #gr.show()
34