rvv-karma commited on
Commit
5915266
1 Parent(s): cc604ca

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - hi
5
+ - multilingual
6
+ tags:
7
+ - text2text-generation
8
+ widget:
9
+ - text: What are you doing?
10
+ example_title: What are you doing
11
+ - text: It is raining heavily.
12
+ example_title: It is raining heavily.
13
+ - text: How are you?
14
+ example_title: How are you?
15
+ datasets:
16
+ - rvv-karma/English-Hinglish-TOP
17
+ license: apache-2.0
18
+ pipeline_tag: text2text-generation
19
+ ---
20
+
21
+ # English2Hinglish-Flan-T5-Base
22
+
23
+ This is a finetuned model of [Flan T5 Base](https://huggingface.co/google/flan-t5-base) with [English-Hinglish-TOP](https://huggingface.co/datasets/rvv-karma/English-Hinglish-TOP) dataset.
24
+
25
+ ## Usage
26
+ ```python
27
+ # Load model directly
28
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
29
+
30
+ model_name = "rvv-karma/English2Hinglish-Flan-T5-Base"
31
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
32
+ model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
33
+
34
+ input_text = "What are you doing?"
35
+ input_ids = tokenizer(input_text, return_tensors="pt")
36
+ output_ids = model.generate(**input_ids)
37
+ output_text = tokenizer.decode(output_ids[0], skip_special_tokens=True)
38
+
39
+ print(output_text)
40
+ ```