TanishkB commited on
Commit
c0c46e5
·
verified ·
1 Parent(s): 5c70ebe

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -22,7 +22,7 @@ from transformers import pipeline
22
  # Load text-generation pipeline
23
  generator = pipeline(
24
  "text-generation",
25
- model="TanishkB/RandomNumber",
26
  device=-1 # use 0 if you have GPU
27
  )
28
 
@@ -39,7 +39,7 @@ while True:
39
  # Generate reply
40
  response = generator(
41
  prompt,
42
- max_new_tokens=128,
43
  return_full_text=False
44
  )[0]["generated_text"]
45
 
 
22
  # Load text-generation pipeline
23
  generator = pipeline(
24
  "text-generation",
25
+ model="TanishkB/RandomNumberGenerator",
26
  device=-1 # use 0 if you have GPU
27
  )
28
 
 
39
  # Generate reply
40
  response = generator(
41
  prompt,
42
+ max_new_tokens=64,
43
  return_full_text=False
44
  )[0]["generated_text"]
45