abidlabs HF staff commited on
Commit
f06c100
1 Parent(s): c769d25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -3,6 +3,12 @@ import tensorflow as tf
3
 
4
  inception_net = tf.keras.applications.MobileNetV2()
5
 
 
 
 
 
 
 
6
 
7
  def classify_image(inp):
8
  inp = inp.reshape((-1, 224, 224, 3))
 
3
 
4
  inception_net = tf.keras.applications.MobileNetV2()
5
 
6
+ import requests
7
+
8
+ # Download human-readable labels for ImageNet.
9
+ response = requests.get("https://git.io/JJkYN")
10
+ labels = response.text.split("\n")
11
+
12
 
13
  def classify_image(inp):
14
  inp = inp.reshape((-1, 224, 224, 3))