Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ import torchvision.transforms as transforms
|
|
| 11 |
from PIL import Image
|
| 12 |
import torch
|
| 13 |
import uuid
|
| 14 |
-
|
|
|
|
| 15 |
os.system("pip install dlib")
|
| 16 |
os.system('bash setup.sh')
|
| 17 |
|
|
@@ -125,7 +126,6 @@ def run_cmd(command):
|
|
| 125 |
sys.exit(1)
|
| 126 |
|
| 127 |
def run(image,txt):
|
| 128 |
-
uid = uuid.uuid4()
|
| 129 |
|
| 130 |
if os.path.isdir(f"Temp{uid}"):
|
| 131 |
shutil.rmtree(f"Temp{uid}")
|
|
|
|
| 11 |
from PIL import Image
|
| 12 |
import torch
|
| 13 |
import uuid
|
| 14 |
+
uid = uuid.uuid4()
|
| 15 |
+
|
| 16 |
os.system("pip install dlib")
|
| 17 |
os.system('bash setup.sh')
|
| 18 |
|
|
|
|
| 126 |
sys.exit(1)
|
| 127 |
|
| 128 |
def run(image,txt):
|
|
|
|
| 129 |
|
| 130 |
if os.path.isdir(f"Temp{uid}"):
|
| 131 |
shutil.rmtree(f"Temp{uid}")
|