UzAI
UzAI - bu oddiy sun'iy intellekt (AI) tizimi bo'lib, foydalanuvchining kiritgan savollariga oldindan belgilangan javoblarni beradi. Ushbu kutubxona oddiy savol-javoblarni avtomatlashtirish uchun moslashuvchan va foydalanuvchi do'stona interfeysni taklif qiladi. Bu dasturchilar va yangi o'rganayotganlar uchun sun'iy intellekt algoritmlarini yaratishda asosiy vosita sifatida foydalanishga mo'ljallangan.
O'rnatish
UzAI kutubxonasini PyPI orqali o'rnatish juda oson. Buning uchun siz terminalga yoki buyruq satriga quyidagi buyruqni kiriting:
pip install uzai
foydalanish
from uzai import UzAi
# AI obyektini yaratish
ai = UzAi()
# Foydalanuvchidan savol olish
savol = input('Savol kiriting: ')
# Savolni AI ga uzatish
ai.question(savol)
# Oldindan belgilangan javoblarni kiritish
ai.response([
{'ques': 'salom', 'resp': 'Salom, qanday yordam bera olaman?'},
])
#tasodifiy javoblarni aytish
ai.random_response([
{'ques': 'qalaysan', 'ran_resp': 'yaxshiman, o\'zingiz qalaysiz?|yaxshi, siz yaxshimisiz?'}
])
# Javobni chiqarish
ai.run()
Metadata
Release files for uz-ai 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uz_ai-0.0.2.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uz_ai-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 kB
Release files / uz_ai-0.0.2.tar.gz
| Download URL | uz_ai-0.0.2.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b598b7265c7bd76098d48f6d426fc47c7b266a55b398485ee2866ab4ae36e0f
|
|
BLAKE2b-256 checksum How to use checksums |
50c0fbcc532e30d2ec40295f09ff15a1d80098e50a56ed350302a23f5cda3ecb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|
Release files / uz_ai-0.0.2-py3-none-any.whl
| Download URL | uz_ai-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e382f45bb6fda77a99b83710ada08b4066f3a8fdd132eae0c4fd7f897145c0c1
|
|
BLAKE2b-256 checksum How to use checksums |
c5ab715fb4d0333d92fc8a93c56f46b9c22136fb490f2cd49bd454a977502aeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.5
|