Spaces:
Build error
Build error
Update app.py
Browse files
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, '
|
| 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}"
|