panditamey
commited on
Commit
•
672fa5c
1
Parent(s):
452c489
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,9 @@ def upload_image():
|
|
47 |
index = predictions.index(max_num)
|
48 |
print(classes[index])
|
49 |
os.remove(str(imag.filename))
|
50 |
-
|
|
|
|
|
51 |
|
52 |
|
53 |
if __name__ =="__main__":
|
|
|
47 |
index = predictions.index(max_num)
|
48 |
print(classes[index])
|
49 |
os.remove(str(imag.filename))
|
50 |
+
response = jsonify(output=classes[index])
|
51 |
+
response.headers.add("Access-Control-Allow-Origin", "*")
|
52 |
+
return response
|
53 |
|
54 |
|
55 |
if __name__ =="__main__":
|