Omaratef3221 commited on
Commit
fab77f9
1 Parent(s): 9e7becf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -24,14 +24,14 @@ It can also be used for research and development in natural language understandi
24
  ## How to Use
25
  You can use this model directly with the transformers library as follows:
26
 
27
- ## Download the model
28
  ```python
29
  model_name = "Omaratef3221/flan-t5-base-dialogue-generator"
30
  tokenizer = AutoTokenizer.from_pretrained(model_name)
31
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
 
32
 
33
-
34
- ## Use with example
35
  ```python
36
  from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
37
 
@@ -48,4 +48,4 @@ Dialogue:
48
  input_ids = tokenizer(prompt, return_tensors='pt').input_ids
49
  output = model.generate(input_ids, top_p = 0.6, do_sample=True, temperature = 1.2, max_length = 512)
50
  print(tokenizer.decode(output[0], skip_special_tokens=True).replace('. ', '.\n'))
51
-
 
24
  ## How to Use
25
  You can use this model directly with the transformers library as follows:
26
 
27
+ ### Download the model
28
  ```python
29
  model_name = "Omaratef3221/flan-t5-base-dialogue-generator"
30
  tokenizer = AutoTokenizer.from_pretrained(model_name)
31
  model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
32
+ ```
33
 
34
+ ### Use with example
 
35
  ```python
36
  from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
37
 
 
48
  input_ids = tokenizer(prompt, return_tensors='pt').input_ids
49
  output = model.generate(input_ids, top_p = 0.6, do_sample=True, temperature = 1.2, max_length = 512)
50
  print(tokenizer.decode(output[0], skip_special_tokens=True).replace('. ', '.\n'))
51
+ ```