Transformers
PyTorch
English
t5
text2text-generation
conversation
dialogue
commonsense
text-generation-inference
Instructions to use sefinch/ConvoSenseGenerator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sefinch/ConvoSenseGenerator with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("sefinch/ConvoSenseGenerator") model = AutoModelForSeq2SeqLM.from_pretrained("sefinch/ConvoSenseGenerator") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -134,6 +134,13 @@ conversation = [
|
|
| 134 |
|
| 135 |
inferences = generate(conversation, "cause")
|
| 136 |
print('\n'.join(inferences))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
```
|
| 138 |
|
| 139 |
### Citation
|
|
|
|
| 134 |
|
| 135 |
inferences = generate(conversation, "cause")
|
| 136 |
print('\n'.join(inferences))
|
| 137 |
+
|
| 138 |
+
# Outputs:
|
| 139 |
+
# the speaker's fear of the cold and the inconvenience of having to take the dog out in the winter.
|
| 140 |
+
# the speaker's preference for indoor activities during winter, such as watching movies or playing video games.
|
| 141 |
+
# the speaker's fear of getting sick from taking the dog out in the cold.
|
| 142 |
+
# a previous negative experience with taking dogs for walks in the winter.
|
| 143 |
+
# the listener's suggestion to offer to help with taking care of the dog, which the speaker may have considered but was not willing to do.
|
| 144 |
```
|
| 145 |
|
| 146 |
### Citation
|