rebuild pkg structure

This commit is contained in:
if 2023-04-16 04:11:57 +03:00
parent f163406d5f
commit 2216723c92
29 changed files with 8 additions and 13 deletions

View File

@ -6,7 +6,7 @@ A ChatGPT API wrapper, providing a user-friendly Streamlit web interface.
Enhance your ChatGPT experience with our user-friendly API wrapper, featuring a seamless Streamlit web interface. Effortlessly interact with ChatGPT, while enjoying an intuitive and responsive design. Discover simplified access to advanced AI technology in just a few clicks. Enhance your ChatGPT experience with our user-friendly API wrapper, featuring a seamless Streamlit web interface. Effortlessly interact with ChatGPT, while enjoying an intuitive and responsive design. Discover simplified access to advanced AI technology in just a few clicks.
![](assets/demo/ai-talks.gif) ![](ai_talks/assets/demo/ai-talks.gif)
## Setup ## Setup
@ -40,7 +40,7 @@ bash run.sh
Another way: Another way:
```bash ```bash
streamlit run chat.py streamlit run ai_talks/chat.py
``` ```
Once the script is started, you can go to the URL [http://localhost:8501](http://localhost:8501) to start using the bot. Once the script is started, you can go to the URL [http://localhost:8501](http://localhost:8501) to start using the bot.
@ -81,6 +81,6 @@ UQDbnx17N2iOmxfQF0k55QScDMB0MHL9rsq-iGB93RMqDhIH
- [boosty](https://boosty.to/ai-talks/donate) - [boosty](https://boosty.to/ai-talks/donate)
- [CloudTips (Tinkoff)](https://pay.cloudtips.ru/p/eafa15b2) - [CloudTips (Tinkoff)](https://pay.cloudtips.ru/p/eafa15b2)
![](/assets/qr/tink.png) ![](ai_talks/assets/qr/tink.png)
</details> </details>

View File

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 2.5 MiB

View File

Before

Width:  |  Height:  |  Size: 331 KiB

After

Width:  |  Height:  |  Size: 331 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 153 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

Before

Width:  |  Height:  |  Size: 4.5 MiB

After

Width:  |  Height:  |  Size: 4.5 MiB

View File

Before

Width:  |  Height:  |  Size: 5.4 MiB

After

Width:  |  Height:  |  Size: 5.4 MiB

View File

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

Before

Width:  |  Height:  |  Size: 5.0 MiB

After

Width:  |  Height:  |  Size: 5.0 MiB

View File

Before

Width:  |  Height:  |  Size: 4.8 MiB

After

Width:  |  Height:  |  Size: 4.8 MiB

View File

Before

Width:  |  Height:  |  Size: 3.0 MiB

After

Width:  |  Height:  |  Size: 3.0 MiB

View File

Before

Width:  |  Height:  |  Size: 4.9 MiB

After

Width:  |  Height:  |  Size: 4.9 MiB

View File

Before

Width:  |  Height:  |  Size: 77 KiB

After

Width:  |  Height:  |  Size: 77 KiB

View File

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 82 KiB

View File

@ -46,7 +46,7 @@ def show_donates() -> None:
""") """)
_, img_col, _ = st.columns(3) _, img_col, _ = st.columns(3)
with img_col: with img_col:
st.image("assets/qr/tink.png", width=200) st.image("ai_talks/assets/qr/tink.png", width=200)
st.divider() st.divider()
st.markdown(f"<div style='text-align: justify;'>{st.session_state.locale.donates_info}</div>", st.markdown(f"<div style='text-align: justify;'>{st.session_state.locale.donates_info}</div>",
unsafe_allow_html=True) unsafe_allow_html=True)

2
run.sh
View File

@ -1 +1 @@
streamlit run chat.py streamlit run ai_talks/chat.py

View File

@ -6,13 +6,12 @@ with open("requirements.txt") as f:
setup( setup(
name="ai-talks", name="ai-talks",
version="0.8.8.8", version="0.8.997",
exclude_package_data={"": ["secrets.toml"]}, packages=find_packages(),
packages=find_packages(exclude=["secrets.toml", ]),
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=chat:run_agi", "ai-talks=ai_talks.chat:run_agi",
], ],
}, },
author="Dmitry Kosarevsky", author="Dmitry Kosarevsky",
@ -25,10 +24,6 @@ setup(
"Development Status :: 3 - Alpha", "Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",