Skip to content

Commit

Permalink
Fix unclear example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Aug 16, 2023
1 parent 7700d4d commit 4c2eb4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ import outlines.models as models

model = models.transformers("gpt2")

prompt = labelling("Just awesome", examples)
prompt = """You are a sentiment-labelling assistant.
Is the following review positive or negative?
Review: This restaurant is just awesome!
"""
answer = generate.choice(model, ["Positive", "Negative"])(prompt)
```

Expand Down

0 comments on commit 4c2eb4e

Please sign in to comment.