From cd5ad0b61a5517576eeb6f5a375225bee7deb487 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 19 Jul 2024 00:22:37 +0200 Subject: [PATCH] Fix favico and int temp --- app.py | 2 +- templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index edf9ed9..01279c9 100644 --- a/app.py +++ b/app.py @@ -20,7 +20,7 @@ tokenizer = AutoTokenizer.from_pretrained(os.environ.get('TOKENIZER', 'gpt2')) api_url = os.environ.get('API_URL', 'https://api.openai.com/v1') api_key = os.environ.get('API_KEY') api_model = os.environ.get('API_MODEL', 'gpt-3.5-turbo') -temperature = os.environ.get('TEMPERATURE', 0) +temperature = int(os.environ.get('TEMPERATURE', 0)) @app.route('/v1/tokenizer/count', methods=['POST']) def token_count(): diff --git a/templates/index.html b/templates/index.html index 776b08c..f2c79aa 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@ cchat - +