Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -18,6 +18,11 @@ os.makedirs(RESULT_FOLDER, exist_ok=True)
|
|
18 |
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
19 |
app.config['RESULT_FOLDER'] = RESULT_FOLDER
|
20 |
|
|
|
|
|
|
|
|
|
|
|
21 |
@app.route('/process', methods=['POST'])
|
22 |
def predict():
|
23 |
try:
|
|
|
18 |
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
|
19 |
app.config['RESULT_FOLDER'] = RESULT_FOLDER
|
20 |
|
21 |
+
|
22 |
+
@app.route('/')
|
23 |
+
def Home():
|
24 |
+
return {"model": "Wearon is running"}
|
25 |
+
|
26 |
@app.route('/process', methods=['POST'])
|
27 |
def predict():
|
28 |
try:
|