Flask / routes /chat.py
UntilDot's picture
Upload 10 files
718aa48 verified
raw
history blame
408 Bytes
from flask import Flask, render_template
from routes.chat import chat_bp
import os
import dotenv
# Load secrets from .env
dotenv.load_dotenv()
app = Flask(__name__, static_url_path='/static')
app.register_blueprint(chat_bp)
@app.route("/")
def index():
return render_template("index.html")
if __name__ == "__main__":
app.run(host="0.0.0.0", port=7860, debug=False) # Hugging Face uses port 7860