Created
December 16, 2018 22:00
-
-
Save DustinAlandzes/8a06e4169acb4fc46a311ddc0612175d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
app = Flask(__name__) | |
@app.route('/api/intent', methods=['POST']) | |
def analysis(): | |
''' | |
Use this to create a new intent. Accepts intent as a string | |
''' | |
return 'Hello, World!' | |
@app.route('/api/intent/train', methods=['POST']) | |
def analysis(): | |
''' | |
Accepts intent string and training data in an array format. | |
''' | |
return 'Hello, World!' | |
@app.route('/api/analysis', methods=['GET']) | |
def analysis(): | |
''' | |
Accepts message and returns interpreter data. | |
Use rasa_core.agent and rasa_core.interpreter for this purpose. | |
''' | |
return 'Hello, World!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment