Fix favico and int temp

This commit is contained in:
elijah 2024-07-19 00:22:37 +02:00
parent 53d4703cb2
commit cd5ad0b61a
2 changed files with 2 additions and 2 deletions

2
app.py
View File

@ -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():

View File

@ -3,7 +3,7 @@
<head>
<title>cchat</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="{{ url_for('static', filename='favicon.svg') }}" type="image/svg+xml">
<link rel="icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/svg+xml">
<script defer src="https://cdn.jsdelivr.net/npm/@alpine-collective/toolkit@1.0.2/dist/cdn.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/@alpinejs/intersect@3.x.x/dist/cdn.min.js"></script>