D3V1L1810 commited on
Commit
e8e7821
·
verified ·
1 Parent(s): 461d454

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -60,7 +60,7 @@ def predict_text(params):
60
  predict_label = 7
61
 
62
  label = {0: 'BUSINESS', 1: 'COMEDY', 2: 'CRIME', 3: 'FOOD & DRINK', 4: 'POLITICS', 5: 'SPORTS', 6: 'TRAVEL', 7: 'None'}
63
- result = {'text':text, 'label':[label[pred_label]], "qcUser" : None,"normalfileID":file_id}
64
  solutions.append(result)
65
 
66
  # result_url = f"{api}/{job_id}"
 
60
  predict_label = 7
61
 
62
  label = {0: 'BUSINESS', 1: 'COMEDY', 2: 'CRIME', 3: 'FOOD & DRINK', 4: 'POLITICS', 5: 'SPORTS', 6: 'TRAVEL', 7: 'None'}
63
+ result = {'text':text, 'answer':[label[pred_label]], "qcUser" : None,"normalfileID":file_id}
64
  solutions.append(result)
65
 
66
  # result_url = f"{api}/{job_id}"