Update README.md
Browse files
README.md
CHANGED
|
@@ -88,7 +88,7 @@ preds = torch.softmax(logits / 0.07, dim=1).squeeze(0).tolist()
|
|
| 88 |
|
| 89 |
# Output predictions
|
| 90 |
for i, prompt in enumerate(prompts):
|
| 91 |
-
print(f"Probability: {preds[i]*100:.3f}%, Text: {prompt}")
|
| 92 |
```
|
| 93 |
|
| 94 |
Repeat the process for any other classification tasks you want, such as malware classification and cryptographic algorithm identification, by loading the respective datasets and defining the relevant natural language prompts.
|
|
|
|
| 88 |
|
| 89 |
# Output predictions
|
| 90 |
for i, prompt in enumerate(prompts):
|
| 91 |
+
print(f"Probability: {preds[i]*100:.3f}%, Text: {prompt}")
|
| 92 |
```
|
| 93 |
|
| 94 |
Repeat the process for any other classification tasks you want, such as malware classification and cryptographic algorithm identification, by loading the respective datasets and defining the relevant natural language prompts.
|