prithivMLmods commited on
Commit
3aff7a7
·
verified ·
1 Parent(s): 1b51a87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -13,13 +13,7 @@ from roop.utilities import normalize_output_path
13
  from PIL import Image
14
  import gradio as gr
15
  import os
16
- import torch
17
- import spaces
18
 
19
- if not torch.cuda.is_available():
20
- DESCRIPTION += "\n<p>⚠️Running on CPU, This may not work on CPU.</p>"
21
-
22
- @spaces.GPU(duration=60, enable_queue=True)
23
  def swap_face(source_file, target_file):
24
  source_image = Image.fromarray(source_file)
25
  source_path = "input.jpg"
 
13
  from PIL import Image
14
  import gradio as gr
15
  import os
 
 
16
 
 
 
 
 
17
  def swap_face(source_file, target_file):
18
  source_image = Image.fromarray(source_file)
19
  source_path = "input.jpg"