Spaces:
Sleeping
Sleeping
seriouspark
commited on
Commit
·
5b5dea6
1
Parent(s):
ddd00e7
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def infer_data(model, main_feeling_keyword):
|
|
68 |
mask = infer_input['attention_mask'].to(device)
|
69 |
input_id = infer_input['input_ids'].squeeze(1).to(device)
|
70 |
|
71 |
-
output =
|
72 |
result = np.argmax(output.logits, axis=1).numpy()
|
73 |
result_list.extend(result)
|
74 |
return result_list
|
|
|
68 |
mask = infer_input['attention_mask'].to(device)
|
69 |
input_id = infer_input['input_ids'].squeeze(1).to(device)
|
70 |
|
71 |
+
output = model(input_id, mask)
|
72 |
result = np.argmax(output.logits, axis=1).numpy()
|
73 |
result_list.extend(result)
|
74 |
return result_list
|