akhaliq HF staff commited on
Commit
759dcac
·
verified ·
1 Parent(s): 1953e9a

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -19,7 +19,7 @@ async def generate_fortune(name):
19
  return "Please enter your name to receive a fortune."
20
 
21
  prompt = f"Fortune for {name}: In the near future, you will"
22
- result = await fortune_generator(prompt, max_new_tokens=50, temperature=0.7)
23
  fortune = result[0]['generated_text'].replace(prompt, '')
24
 
25
  return f"{name.strip()}, your fortune: In the near future, you will{fortune}"
 
19
  return "Please enter your name to receive a fortune."
20
 
21
  prompt = f"Fortune for {name}: In the near future, you will"
22
+ result = await fortune_generator(prompt, max_new_tokens=20, temperature=0.7)
23
  fortune = result[0]['generated_text'].replace(prompt, '')
24
 
25
  return f"{name.strip()}, your fortune: In the near future, you will{fortune}"