Spaces:
Sleeping
Sleeping
Trae Assistant
Initial commit: Enhanced Inventory Optimization Studio with robust import/export
fcf3dca | from flask import Flask, render_template, send_from_directory | |
| import os | |
| app = Flask(__name__) | |
| # Fix conflict between Jinja2 and Vue.js delimiters if we were using Jinja templates mixed with Vue | |
| # But we'll likely use raw HTML/Vue, but just in case: | |
| app.jinja_env.variable_start_string = '[[' | |
| app.jinja_env.variable_end_string = ']]' | |
| app.jinja_env.block_start_string = '[%' | |
| app.jinja_env.block_end_string = '%]' | |
| def index(): | |
| return render_template('index.html') | |
| def send_static(path): | |
| return send_from_directory('static', path) | |
| def health(): | |
| return "OK" | |
| if __name__ == '__main__': | |
| port = int(os.environ.get('PORT', 7860)) | |
| app.run(host='0.0.0.0', port=port) | |