fix pkg structure
This commit is contained in:
parent
7dd735c580
commit
f163406d5f
6
chat.py
6
chat.py
@ -88,7 +88,7 @@ def main() -> None:
|
|||||||
show_chat_buttons()
|
show_chat_buttons()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def run_agi():
|
||||||
match selected_lang:
|
match selected_lang:
|
||||||
case "En":
|
case "En":
|
||||||
st.session_state.locale = en
|
st.session_state.locale = en
|
||||||
@ -120,3 +120,7 @@ if __name__ == "__main__":
|
|||||||
show_donates()
|
show_donates()
|
||||||
case _:
|
case _:
|
||||||
show_info(tg_svg)
|
show_info(tg_svg)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
run_agi()
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
os.system("streamlit run ../chat.py")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
2
setup.py
2
setup.py
@ -12,7 +12,7 @@ setup(
|
|||||||
install_requires=requirements, # Use the parsed requirements here
|
install_requires=requirements, # Use the parsed requirements here
|
||||||
entry_points={
|
entry_points={
|
||||||
"console_scripts": [
|
"console_scripts": [
|
||||||
"ai-talks=pkg.run_agi:main",
|
"ai-talks=chat:run_agi",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
author="Dmitry Kosarevsky",
|
author="Dmitry Kosarevsky",
|
||||||
|
Loading…
Reference in New Issue
Block a user