hanchenglong001

Results 7 comments of hanchenglong001

I started a Flask program in Fleet and used the Fleet UI to access it. But the Flask program is HTTP. I tried using the following method to start Flask...

import time import flet as ft import threading from flask import Flask,send_file app = Flask(__name__) @app.route('/') def hello_world(): return send_file("assets/test.html") def run_flask_in_thread(): print("Starting Flask in thread...") app.run(host='0.0.0.0',port=5448) def main(page: ft.Page):...

![e9454ae7148ef6ace2f063fe7ac336b](https://github.com/flet-dev/flet/assets/56539098/0ffa982e-0e0a-4b58-8d92-bfeceb255df4)

> 请使用英文和正确的模板提交问题。 Link questions using English and correct templates https://github.com/flet-dev/flet/issues/3128#issue-2268705349

强烈需要。我目前自己实现了个接口 把python脚本通过请求体传过去。然后执行完在传回来。