Update app.py
Browse files
app.py
CHANGED
@@ -42,15 +42,15 @@ urllib.request.urlretrieve(MODEL_URL, "t10T.pkl")
|
|
42 |
path = Path(".")
|
43 |
learn=load_learner(path, 't10T.pkl')
|
44 |
|
45 |
-
urlretrieve("https://www.top5.com/wp-content/uploads/2013/07/worst-celebrity-tattoos-mike-tyson.jpg","
|
46 |
-
urlretrieve("https://media.okmagazine.com/brand-img/IEPXUdkY7/0x0/2015/06/celebrity-tattoos-16-splash.jpg","
|
47 |
-
urlretrieve("https://newsmeter.in/wp-content/uploads/2020/06/Ajay-Devgn-Tattoo.jpg","
|
48 |
-
urlretrieve("https://images.ctfassets.net/9l3tjzgyn9gr/photo-101059/c272beb512b949b4ff302aa93fb3164a/101059-angelina-jolie-tattoos.jpg?fm=jpg&fl=progressive&q=50&w=1200","
|
49 |
|
50 |
-
sample_images = [["
|
51 |
-
["
|
52 |
-
["
|
53 |
-
["
|
54 |
|
55 |
|
56 |
def predict(input):
|
|
|
42 |
path = Path(".")
|
43 |
learn=load_learner(path, 't10T.pkl')
|
44 |
|
45 |
+
urlretrieve("https://www.top5.com/wp-content/uploads/2013/07/worst-celebrity-tattoos-mike-tyson.jpg","socce1.jpg")
|
46 |
+
urlretrieve("https://media.okmagazine.com/brand-img/IEPXUdkY7/0x0/2015/06/celebrity-tattoos-16-splash.jpg","socce2.jpg")
|
47 |
+
urlretrieve("https://newsmeter.in/wp-content/uploads/2020/06/Ajay-Devgn-Tattoo.jpg","basebal.jpg")
|
48 |
+
urlretrieve("https://images.ctfassets.net/9l3tjzgyn9gr/photo-101059/c272beb512b949b4ff302aa93fb3164a/101059-angelina-jolie-tattoos.jpg?fm=jpg&fl=progressive&q=50&w=1200","baseball.jpeg")
|
49 |
|
50 |
+
sample_images = [["socce1.jpg"],
|
51 |
+
["socce2.jpg"],
|
52 |
+
["basebal.jpg"],
|
53 |
+
["baseball.jpg"]]
|
54 |
|
55 |
|
56 |
def predict(input):
|