Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
link = input("Introduce el link de la imagen: ")
|
2 |
+
!wget $link -O poke.jpg
|
3 |
+
import PIL
|
4 |
+
img = PILImage.create('poke.jpg')
|
5 |
+
learn_inf = load_learner('export.pkl')
|
6 |
+
pred_class,pred_idx,outputs=learn_inf.predict(img)
|
7 |
+
print(pred_class)
|