panditamey
commited on
Commit
•
0dd2821
1
Parent(s):
473663e
Update app.py
Browse files
app.py
CHANGED
@@ -17,14 +17,14 @@ from flask_cors import CORS, cross_origin
|
|
17 |
|
18 |
app = Flask(__name__)
|
19 |
|
20 |
-
id = "
|
21 |
-
output = "
|
22 |
gdown.download(id=id, output=output, quiet=False)
|
23 |
|
24 |
CORS(app)
|
25 |
app.config['CORS_HEADERS'] = 'Content-Type'
|
26 |
|
27 |
-
crop_disease_ml=load_model('
|
28 |
|
29 |
@app.route("/upload-image", methods=["POST"])
|
30 |
@cross_origin()
|
|
|
17 |
|
18 |
app = Flask(__name__)
|
19 |
|
20 |
+
id = "1dPrnyH7y9ojSHaOOOTkbGkCnhwYvMxab"
|
21 |
+
output = "disease_new.h5"
|
22 |
gdown.download(id=id, output=output, quiet=False)
|
23 |
|
24 |
CORS(app)
|
25 |
app.config['CORS_HEADERS'] = 'Content-Type'
|
26 |
|
27 |
+
crop_disease_ml=load_model('disease_new.h5')
|
28 |
|
29 |
@app.route("/upload-image", methods=["POST"])
|
30 |
@cross_origin()
|