Skip to main content

siz UzAi da sun'iy intelektlar yarata olasiz

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uz_ai-0.0.2.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

uz_ai-0.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file uz_ai-0.0.2.tar.gz.

File metadata

  • Download URL: uz_ai-0.0.2.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for uz_ai-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1b598b7265c7bd76098d48f6d426fc47c7b266a55b398485ee2866ab4ae36e0f
MD5 991a60a5bf5199d7bc25631d21566b5c
BLAKE2b-256 50c0fbcc532e30d2ec40295f09ff15a1d80098e50a56ed350302a23f5cda3ecb

See more details on using hashes here.

File details

Details for the file uz_ai-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: uz_ai-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for uz_ai-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e382f45bb6fda77a99b83710ada08b4066f3a8fdd132eae0c4fd7f897145c0c1
MD5 70046a5652dde3d1754d59e5b9e1c1d8
BLAKE2b-256 c5ab715fb4d0333d92fc8a93c56f46b9c22136fb490f2cd49bd454a977502aeb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page