model-viewer/app.py
Juanjo Gutiérrez df5b0b4400
All checks were successful
continuous-integration/drone/push Build is passing
Add CI and related fixes (#1)
Reviewed-on: #1
Co-authored-by: Juanjo Gutiérrez <juanjo@gutierrezdequevedo.com>
Co-committed-by: Juanjo Gutiérrez <juanjo@gutierrezdequevedo.com>
2026-01-30 12:56:01 +01:00

17 lines
397 B
Python

from flask import Flask, send_from_directory
app = Flask(__name__, static_folder='static', static_url_path='/static')
@app.route('/')
def index():
return send_from_directory('static', 'index.html')
@app.route('/<path:filename>')
def static_files(filename):
return send_from_directory('static', filename)
if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=5000)