epsil commited on
Commit
74e1837
·
1 Parent(s): 1b4f29d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +36 -1
README.md CHANGED
@@ -1 +1,36 @@
1
- This is fine-tuned model on Bhagvad Gita and creates text based on prompts.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ This is fine-tuned model on Bhagvad Gita and creates text based on prompts.
2
+ Example of usage:
3
+
4
+ ```
5
+ from transformers import AutoTokenizer, AutoModelForCausalLM
6
+
7
+ tokenizer = AutoTokenizer.from_pretrained("epsil/bhagvad_gita")
8
+
9
+ model = AutoModelForCausalLM.from_pretrained("epsil/bhagvad_gita")
10
+
11
+ ```
12
+ Input
13
+ ```
14
+ from transformers import pipeline
15
+
16
+ pipeline = pipeline('text-generation',model=model, tokenizer=tokenizer)
17
+
18
+ result = samples('Krishna show me the right path')[0]['generated_text']
19
+ print(result)
20
+
21
+ ```
22
+
23
+ Output
24
+ ```
25
+ Krishna show me the right path, and I also to remember the lessons, and to remember them right.
26
+
27
+ Sama! in His Day, and by Thy own Eternal Grace.
28
+
29
+ A man like that who shall come to us
30
+
31
+ ```
32
+
33
+ > Created by [Saurabh Mishra](https://www.linkedin.com/in/saurabh-mishra-12b5a1216/)
34
+
35
+ > Made with <span style="color: #e25555;">&hearts;</span> in India
36
+