Fix Packaging the Khoj Desktop Apps (#289)

* Add langchain static files and pytorch metadata to Khoj native app

* Add pillow static files, metadata & hidden imports to Khoj native app

* Fix path to web interface static files on Khoj native app

* Add tiktoken hidden imports to make chat work from Khoj native app

* Fix Khoj native app to run with GUI mode enabled

This got broken when we moved from using the --no-gui flag to using
--gui in https://github.com/khoj-ai/khoj/pull/263
This commit is contained in:
Debanjum
2023-07-09 10:21:16 -07:00
committed by GitHub
parent 4c135ea316
commit 77755c0284
2 changed files with 13 additions and 4 deletions

View File

@@ -172,5 +172,10 @@ class ServerThread(QThread):
start_server(self.app, self.host, self.port, self.socket)
if __name__ == "__main__":
def run_gui():
sys.argv += ["--gui"]
run()
if __name__ == "__main__":
run_gui()