-
Notifications
You must be signed in to change notification settings - Fork 107
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
Flask/Gunicorn server api #9
Comments
You need to adapt interactive_bot.py by creating a route around the following lines gpt2bot/gpt2bot/interactive_bot.py Lines 35 to 66 in a091b7e
Having query To create a Flask app for text generation you can look at my other project textai, for example this app. I'm currently preparing a new release of gpt2bot, so maybe after I finished that I will consider creating a Flask version. |
Awesome mate :-) When do you think you gonna release it ? For the flask server, we managed to create one so no hurries ^^ Cheers, |
Looks good. You would also need some sort of session management and ideally a route for updating the parameters of the generator such as temperature, no need to restart the server to update the config. I will release it the next week I guess, I'm trying to decouple it from dialogpt and generalize it to accept any gpt2 model. |
Hi @polakowo I tried to create a new flask server from your latest changes with no luck... Do you mind to create it ? That would be so awesome and kind of you :-) Cheers, |
Hi,
Hope you are all well !
I would like to setup a flask server with a
query
endpoint for processing a message.Is it possible to push an example of
gpt2bot
with a flask server or gunicorn ?In fact, I am writing a multi bot project (written in Golang) and I d like to aggregate response of several type of chatbots with an agent. The projet reference is there: https://github.com/paper2code/telegram-multibot
As I am much more a gopher than a pythonista, I am requesting your kind help on that. ^^
Can you help me on that ?
Cheers,
X
The text was updated successfully, but these errors were encountered: