Spaces:
Sleeping
Sleeping
Update app.py
Browse files12 unmodified lines1314151617181920212223242512 unmodified linesfrom roop.utilities import normalize_output_pathimport osfrom PIL import Imageimport torchimport spaces
if not torch.cuda.is_available(): DESCRIPTION += "\n<p>⚠️Running on CPU, This may not work on CPU.</p>"
@spaces.GPU(duration=60, enable_queue=True)def swap_face(source_file, target_file,doFaceEnhancer):
source_path = "input.jpg"app.py+5