Spaces:
Runtime error
Runtime error
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") | |
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) |