Update index.html
Browse files- 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=
|
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}"
|