diff --git a/chat.py b/chat.py index 669923c..1886c40 100644 --- a/chat.py +++ b/chat.py @@ -88,7 +88,7 @@ def main() -> None: show_chat_buttons() -if __name__ == "__main__": +def run_agi(): match selected_lang: case "En": st.session_state.locale = en @@ -120,3 +120,7 @@ if __name__ == "__main__": show_donates() case _: show_info(tg_svg) + + +if __name__ == "__main__": + run_agi() diff --git a/pkg/__init__.py b/pkg/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/pkg/run_agi.py b/pkg/run_agi.py deleted file mode 100644 index 681de6a..0000000 --- a/pkg/run_agi.py +++ /dev/null @@ -1,9 +0,0 @@ -import os - - -def main(): - os.system("streamlit run ../chat.py") - - -if __name__ == "__main__": - main() diff --git a/setup.py b/setup.py index 45ea35f..6d3f038 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( install_requires=requirements, # Use the parsed requirements here entry_points={ "console_scripts": [ - "ai-talks=pkg.run_agi:main", + "ai-talks=chat:run_agi", ], }, author="Dmitry Kosarevsky",