Update README.md
Browse files
README.md
CHANGED
|
@@ -73,7 +73,7 @@ device = 'cuda'
|
|
| 73 |
device = 0 if torch.cuda.is_available() else -1 # Use GPU if available, otherwise CPU
|
| 74 |
|
| 75 |
# Create the pipeline
|
| 76 |
-
text_generator = pipeline("text-generation", model=
|
| 77 |
|
| 78 |
|
| 79 |
```
|
|
|
|
| 73 |
device = 0 if torch.cuda.is_available() else -1 # Use GPU if available, otherwise CPU
|
| 74 |
|
| 75 |
# Create the pipeline
|
| 76 |
+
text_generator = pipeline("text-generation", model="Ketansomewhere/gpt-neo", tokenizer=tokenizer, device=device)
|
| 77 |
|
| 78 |
|
| 79 |
```
|