Josh-Ola's picture
Upload folder using huggingface_hub
65976bc verified
raw
history blame contribute delete
635 Bytes
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)