WebView better, i think?

This commit is contained in:
Patrick_Pluto 2024-09-23 16:35:16 +02:00
parent 1a45c04b88
commit 5a7961b10f
4 changed files with 8 additions and 11 deletions

View file

@ -118,8 +118,3 @@ class API:
ssl_context = ("cert.pem", "key.pem") ssl_context = ("cert.pem", "key.pem")
self.app.run(debug=True, host='0.0.0.0', port=5000) self.app.run(debug=True, host='0.0.0.0', port=5000)
if __name__ == '__main__':
api = API()
api.run()

View file

@ -5,7 +5,4 @@ mistralai
openai openai
anthropic anthropic
pyOpenSSL pyOpenSSL
pywebview
tkhtmlview
cefpython3
pywebview pywebview

7
py/run.py Normal file
View file

@ -0,0 +1,7 @@
import os
import webview
os.system("python api.py")
webview.create_window('Hello world', 'http://localhost:3000')
webview.start()

View file

@ -1,3 +1 @@
import webview
webview.create_window('Hello world', 'http://localhost:3000')
webview.start()