Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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))
|