Suchinthana
commited on
Commit
•
e224ee9
1
Parent(s):
282a70b
how to
Browse filesAdded how to use in python commands
README.md
CHANGED
@@ -1,8 +1,20 @@
|
|
1 |
---
|
2 |
license: mit
|
3 |
-
|
4 |
widget:
|
5 |
-
- text:
|
6 |
-
- text:
|
7 |
-
|
|
|
|
|
8 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
|
|
3 |
widget:
|
4 |
+
- text: කවියා නුමුහු කළ නුවණ
|
5 |
+
- text: පිරිසිදු පානීය ජලය
|
6 |
+
language:
|
7 |
+
- si
|
8 |
+
pipeline_tag: text-generation
|
9 |
---
|
10 |
+
|
11 |
+
### How to use
|
12 |
+
|
13 |
+
You can use this model directly with a pipeline for text generation. This example generates a different sequence each time it's run:
|
14 |
+
|
15 |
+
```py
|
16 |
+
>>> from transformers import pipeline
|
17 |
+
>>> generator = pipeline('text-generation', model='Suchinthana/sinhala-gpt-neo')
|
18 |
+
>>> generator("කවියා නුමුහු කළ නුවණ ", do_sample=True, max_length=500)
|
19 |
+
|
20 |
+
```
|