Spaces:
Runtime error
Runtime error
File size: 635 Bytes
65976bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
from flask import Flask
from ingest_data import data_ingestion
from chat_app import chat
app = Flask(__name__)
app.register_blueprint(data_ingestion, url_prefix = "/ingestion")
app.register_blueprint(chat, url_prefix = "/chat")
@app.route("/index")
@app.route("/")
def index():
message = """
Welcome to the chatbot API! This API provides various endpoints to for the entire system.
The available routes are:
- /ingestion: Use this route to ingest the data.
- /chat: Use this route to access the chatbbot.
"""
return message
if __name__ == "__main__":
app.run(debug=True, host='0.0.0.0', port=8080) |