|
input = input("Введите описание или название товара") |
|
print(input) |
|
prediction = input |
|
print(prediction) |
|
|
|
|
|
from gigachat import GigaChat |
|
import telebot |
|
TOKEN = "Ваш токен" |
|
bot = telebot.TeleBot(TOKEN) |
|
|
|
|
|
|
|
|
|
@bot.message_handler(content_types=["text"]) |
|
def start_text(message): |
|
|
|
print(message) |
|
|
|
|
|
|
|
with GigaChat(credentials="Ключик со Сбера", verify_ssl_certs=False) as giga: |
|
response = giga.chat(message.text) |
|
print(response.choices[0].message.content) |
|
bot.send_message(message.chat.id, response.choices[0].message.content) |
|
|
|
bot.infinity_polling() |