8000 GitHub - pokerty/medical-chatbot-grab: Deployment of PyTorch chatbot with Flask
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pokerty/medical-chatbot-grab

 
 

Repository files navigation

Instructions

This git contains 2 versions of the chatbot, both using the infermedica api. One is a command line one with accurate responses. The other is a web app created with Flask with a beautiful interface.

Demo

https://youtu.be/tpHNhktHhRE

Installation

Use the package manager pip to install Flask. Then upgrade it to version 2.0 and above.

pip install flask
pip install flask --upgrade

Request for a developer account at https://developer.infermedica.com for app_key and app_id and set it in config.py (line 21 and 22)

Usage

from flask import Flask, render_template, request, jsonify, redirect, url_for
import infermedica_api
api: infermedica_api.APIv3Connector = infermedica_api.get_api()

To use the web chatbot, run app.py

python app.py

To use the command line chatbot, run chat2.py

python chat2.py

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

About

Deployment of PyTorch chatbot with Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.7%
  • HTML 7.6%
  • CSS 5.7%
  • JavaScript 2.0%
0