ai-virtual-assistant/py/web_flask.py

15 lines
299 B
Python
Raw Normal View History

2024-09-16 13:38:30 +02:00
from flask import Flask, send_from_directory
2024-09-16 13:16:26 +02:00
2024-09-16 13:44:48 +02:00
class WebHost:
@staticmethod
def main_page():
app = Flask(__name__)
2024-09-16 13:16:26 +02:00
2024-09-16 13:44:48 +02:00
@app.route('/')
def index():
return app.send_static_file('index.html')
2024-09-16 13:16:26 +02:00
2024-09-16 13:44:48 +02:00
if __name__ == '__main__':
app.run(debug=True)