Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import numpy as np
|
|
| 4 |
from PIL import Image
|
| 5 |
import uuid
|
| 6 |
import random
|
|
|
|
| 7 |
|
| 8 |
uid=uuid.uuid4()
|
| 9 |
|
|
@@ -115,7 +116,7 @@ def proc0(img):
|
|
| 115 |
|
| 116 |
def proc1(img):
|
| 117 |
rand = random.randint(1,1000)
|
| 118 |
-
sleep(rand/1000)
|
| 119 |
new_num=len(num1)-1
|
| 120 |
num = new_num
|
| 121 |
print (f"new_num: {new_num}")
|
|
@@ -143,7 +144,7 @@ def proc1(img):
|
|
| 143 |
|
| 144 |
def proc2(img):
|
| 145 |
rand = random.randint(1,1000)
|
| 146 |
-
sleep(rand/1000)
|
| 147 |
new_num=len(num1)-1
|
| 148 |
num = new_num
|
| 149 |
print (f"new_num: {new_num}")
|
|
@@ -170,7 +171,7 @@ def proc2(img):
|
|
| 170 |
|
| 171 |
def proc3(img):
|
| 172 |
rand = random.randint(1,1000)
|
| 173 |
-
sleep(rand/1000)
|
| 174 |
new_num=len(num1)-1
|
| 175 |
num = new_num
|
| 176 |
print (f"new_num: {new_num}")
|
|
@@ -198,7 +199,7 @@ def proc3(img):
|
|
| 198 |
|
| 199 |
def proc4(img):
|
| 200 |
rand = random.randint(1,1000)
|
| 201 |
-
sleep(rand/1000)
|
| 202 |
new_num=len(num1)-1
|
| 203 |
num = new_num
|
| 204 |
print (f"new_num: {new_num}")
|
|
@@ -226,7 +227,7 @@ def proc4(img):
|
|
| 226 |
|
| 227 |
def proc5(img):
|
| 228 |
rand = random.randint(1,1000)
|
| 229 |
-
sleep(rand/1000)
|
| 230 |
new_num=len(num1)-1
|
| 231 |
num = new_num
|
| 232 |
print (f"new_num: {new_num}")
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
import uuid
|
| 6 |
import random
|
| 7 |
+
import time
|
| 8 |
|
| 9 |
uid=uuid.uuid4()
|
| 10 |
|
|
|
|
| 116 |
|
| 117 |
def proc1(img):
|
| 118 |
rand = random.randint(1,1000)
|
| 119 |
+
time.sleep(rand/1000)
|
| 120 |
new_num=len(num1)-1
|
| 121 |
num = new_num
|
| 122 |
print (f"new_num: {new_num}")
|
|
|
|
| 144 |
|
| 145 |
def proc2(img):
|
| 146 |
rand = random.randint(1,1000)
|
| 147 |
+
time.sleep(rand/1000)
|
| 148 |
new_num=len(num1)-1
|
| 149 |
num = new_num
|
| 150 |
print (f"new_num: {new_num}")
|
|
|
|
| 171 |
|
| 172 |
def proc3(img):
|
| 173 |
rand = random.randint(1,1000)
|
| 174 |
+
time.sleep(rand/1000)
|
| 175 |
new_num=len(num1)-1
|
| 176 |
num = new_num
|
| 177 |
print (f"new_num: {new_num}")
|
|
|
|
| 199 |
|
| 200 |
def proc4(img):
|
| 201 |
rand = random.randint(1,1000)
|
| 202 |
+
time.sleep(rand/1000)
|
| 203 |
new_num=len(num1)-1
|
| 204 |
num = new_num
|
| 205 |
print (f"new_num: {new_num}")
|
|
|
|
| 227 |
|
| 228 |
def proc5(img):
|
| 229 |
rand = random.randint(1,1000)
|
| 230 |
+
time.sleep(rand/1000)
|
| 231 |
new_num=len(num1)-1
|
| 232 |
num = new_num
|
| 233 |
print (f"new_num: {new_num}")
|