JerryZheng

Results 8 comments of JerryZheng

manage.py ``` #!/usr/bin/env python3 import os from app import create_app from flask_script import Manager, Server from app.models import db from playhouse.flask_utils import FlaskDB app = create_app(os.getenv('FLASK_CONFIG') or 'default') FlaskDB(app, db)...

> 这个有解决吗?空闲超过8小时数据库就无法访问了。 解决就是换语言,换框架

> I don't think this error is likely to do with the `chatgpt` module. Note: `chatgpt` should only be used from Node.js server-side. > > Without more info, we won't...

[This issue solves the error ](https://github.com/latitudegames/GPT-3-Encoder/issues/32) 1. Edit `PATH_OF_PROJECT/node_modules/gpt-3-encoder/Encoder.js` ```js //const encoder = JSON.parse(fs.readFileSync(path.join(__dirname, './encoder.json'))); //const bpe_file = fs.readFileSync(path.join(__dirname, './vocab.bpe'), 'utf-8'); const encoder = require('./encoder.json') const bpe_file = require('./vocab_bpe.json') ```...