Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,6 @@ import gradio as gr
|
|
15 |
import os
|
16 |
import spaces
|
17 |
|
18 |
-
|
19 |
-
@spaces.GPU(enable_queue=True)
|
20 |
def swap_face(source_file, target_file):
|
21 |
source_image = Image.fromarray(source_file)
|
22 |
source_path = "input.jpg"
|
@@ -58,4 +56,4 @@ app = gr.Interface(
|
|
58 |
fn=swap_face, inputs=[gr.Image(), gr.Video()], outputs=[gr.Video()], description="Deep Fake",theme="bethecloud/storj_theme"
|
59 |
)
|
60 |
|
61 |
-
app.launch(
|
|
|
15 |
import os
|
16 |
import spaces
|
17 |
|
|
|
|
|
18 |
def swap_face(source_file, target_file):
|
19 |
source_image = Image.fromarray(source_file)
|
20 |
source_path = "input.jpg"
|
|
|
56 |
fn=swap_face, inputs=[gr.Image(), gr.Video()], outputs=[gr.Video()], description="Deep Fake",theme="bethecloud/storj_theme"
|
57 |
)
|
58 |
|
59 |
+
app.launch()
|