在主代码中有一个类,其中有4个函数。该代码是关于音频到手语的转换。我在另一个烧瓶代码中导入了该类。但该函数不是启动 html 网页,而是在终端中执行。
https://github.com/dev4500/check/tree/main/chck
我尝试将 Flask 的端口号更改为 5001。我认为它会在浏览器中启动 html 网页,从那里获取用户输入(音频),然后在 html 网页上显示手语图像。
您的代码运行得很好。您只需从终端复制本地托管网站的链接并在任何浏览器中打开它即可。
链接将如下所示:
http://127.0.0.1:5000/
这是终端的输出:
PS C:\Users\Moccisor> & C:/Python312/python.exe c:/Users/Moccisor/Desktop/check-main/chck/app.py
* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 653-528-385