diff options
| author | Rose Hogenson <rhogenson@posteo.net> | 2022-02-15 09:02:16 -0800 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@posteo.net> | 2022-02-15 09:02:16 -0800 |
| commit | 4817605a0c52a52dc1b9fcae6774887990eb8a3f (patch) | |
| tree | 9c83d66f243946ae32d0f645cfc840b04f1228ec /ai_dungeon.py | |
| parent | 08fef4b9ef771494bd2291edcfebf42b3d8ac5fd (diff) | |
| download | gpt-adventure-4817605a0c52a52dc1b9fcae6774887990eb8a3f.tar.zst | |
Increase the temperature to 0.9.
Diffstat (limited to 'ai_dungeon.py')
| -rwxr-xr-x | ai_dungeon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ai_dungeon.py b/ai_dungeon.py index eb44a87..9d28bb3 100755 --- a/ai_dungeon.py +++ b/ai_dungeon.py @@ -29,7 +29,7 @@ def trim_sentence(message: str) -> str: def generate(model: transformers.TextGenerationPipeline, prompt: str, **kwargs) -> str: """Generate text from a text generator.""" - out = model(prompt, do_sample=True, temperature=0.8, top_k=60, top_p=0.9, **kwargs) + out = model(prompt, do_sample=True, temperature=0.9, top_k=60, top_p=0.9, **kwargs) return trim_sentence(out[0]["generated_text"]) |
