-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/dialogpt en #136
Feat/dialogpt en #136
Conversation
services/dialogpt/server.py
Outdated
|
||
|
||
def generate_response(context): | ||
global model, tokenizer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нам точно нужны глобалы?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
лучше бы поменять сигнатуру функции на generate_response(model, tokenizer, context):
и прокидывать их внутри фласковской функции
* feat: dialogpt * feat: dialogpt en * fix: add dialogpt * fix: new version * fix: codestyle * more configs * more configs * fix: emotion skill less confident * fix: formatting * fix: intent catcher * fix: check for dialogpt * fix: codestyle * fix: signature of the function
No description provided.