diff --git a/py/api.py b/py/api.py index be44561..55d0483 100644 --- a/py/api.py +++ b/py/api.py @@ -118,3 +118,8 @@ class API: ssl_context = ("cert.pem", "key.pem") self.app.run(debug=True, host='0.0.0.0', port=5000) + + +if __name__ == '__main__': + api = API() + api.run() diff --git a/py/requirements.txt b/py/requirements.txt index 8a79dc1..a5fe3e6 100644 --- a/py/requirements.txt +++ b/py/requirements.txt @@ -5,4 +5,7 @@ mistralai openai anthropic pyOpenSSL +pywebview +tkhtmlview +cefpython3 pywebview \ No newline at end of file diff --git a/py/run.py b/py/run.py deleted file mode 100644 index 612d72e..0000000 --- a/py/run.py +++ /dev/null @@ -1,7 +0,0 @@ -import os -import webview - -os.system("python api.py") -webview.create_window('Hello world', 'http://localhost:3000') -webview.start() - diff --git a/py/webapp.py b/py/webapp.py index 8b13789..e97750b 100644 --- a/py/webapp.py +++ b/py/webapp.py @@ -1 +1,3 @@ - +import webview +webview.create_window('Hello world', 'http://localhost:3000') +webview.start()