This repository has been archived on 2024-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
ai-virtual-assistant/py/web_flask.py
Patrick_Pluto 43043a08e9 OOPified.
2024-09-16 13:44:48 +02:00

14 lines
299 B
Python

from flask import Flask, send_from_directory
class WebHost:
@staticmethod
def main_page():
app = Flask(__name__)
@app.route('/')
def index():
return app.send_static_file('index.html')
if __name__ == '__main__':
app.run(debug=True)