forked from React-Group/interstellar_ai
WebView better, i think?
This commit is contained in:
parent
1a45c04b88
commit
5a7961b10f
4 changed files with 8 additions and 11 deletions
|
@ -118,8 +118,3 @@ 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()
|
||||
|
|
|
@ -5,7 +5,4 @@ mistralai
|
|||
openai
|
||||
anthropic
|
||||
pyOpenSSL
|
||||
pywebview
|
||||
tkhtmlview
|
||||
cefpython3
|
||||
pywebview
|
7
py/run.py
Normal file
7
py/run.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
import os
|
||||
import webview
|
||||
|
||||
os.system("python api.py")
|
||||
webview.create_window('Hello world', 'http://localhost:3000')
|
||||
webview.start()
|
||||
|
|
@ -1,3 +1 @@
|
|||
import webview
|
||||
webview.create_window('Hello world', 'http://localhost:3000')
|
||||
webview.start()
|
||||
|
||||
|
|
Loading…
Reference in a new issue