Spaces:
Sleeping
Sleeping
Commit
·
e616e89
1
Parent(s):
2465f17
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def classify():
|
|
| 27 |
labels = {"LABEL_0":"GULF", "LABEL_1":"LEVANT","LABEL_2":"EGYPT"}
|
| 28 |
regions = []
|
| 29 |
for res in prediction:
|
| 30 |
-
|
| 31 |
|
| 32 |
return render_template('prediction.html', output=regions[0])
|
| 33 |
|
|
|
|
| 27 |
labels = {"LABEL_0":"GULF", "LABEL_1":"LEVANT","LABEL_2":"EGYPT"}
|
| 28 |
regions = []
|
| 29 |
for res in prediction:
|
| 30 |
+
regions.append(labels[res['label']])
|
| 31 |
|
| 32 |
return render_template('prediction.html', output=regions[0])
|
| 33 |
|