offer-architect / app.py
Trae Assistant
Initial commit: Offer Architect MVP
ff15303
raw
history blame contribute delete
483 Bytes
from flask import Flask, render_template, send_from_directory, request, jsonify
import os
app = Flask(__name__, static_folder='static', template_folder='templates')
# Ensure directories exist
os.makedirs('static', exist_ok=True)
os.makedirs('data', exist_ok=True)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/health')
def health():
return jsonify({"status": "healthy"})
if __name__ == '__main__':
app.run(host='0.0.0.0', port=7860)