nehalelkaref commited on
Commit
e616e89
·
1 Parent(s): 2465f17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- regions.append(labels[res['label']])
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