2023-03-22 17:13:02 +01:00
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
from typing import List
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Parent data class
|
|
|
|
|
@dataclass
|
|
|
|
|
class Locale:
|
|
|
|
|
ai_role_options: List[str]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Child data class for English
|
|
|
|
|
@dataclass
|
|
|
|
|
class EnLocale(Locale):
|
2023-04-08 11:12:03 +02:00
|
|
|
|
ai_role_prefix: str = "You are a female"
|
2023-04-09 15:50:05 +02:00
|
|
|
|
ai_role_postfix: str = "Answer as concisely as possible."
|
2023-03-22 17:13:02 +01:00
|
|
|
|
title: str = "AI Talks"
|
|
|
|
|
language: str = "English"
|
|
|
|
|
lang_code: str = "en"
|
|
|
|
|
donates: str = "Donates"
|
|
|
|
|
donates1: str = "Russia"
|
|
|
|
|
donates2: str = "World"
|
|
|
|
|
chat_placeholder: str = "Start Your Conversation With AI:"
|
2023-04-07 22:10:58 +02:00
|
|
|
|
chat_run_btn: str = "Ask"
|
2023-03-28 00:22:02 +02:00
|
|
|
|
chat_clear_btn: str = "Clear"
|
|
|
|
|
chat_save_btn: str = "Save"
|
2023-04-07 22:10:58 +02:00
|
|
|
|
speak_btn: str = "Push to Speak"
|
|
|
|
|
input_kind: str = "Input Kind"
|
|
|
|
|
input_kind_1: str = "Text"
|
|
|
|
|
input_kind_2: str = "Voice [test mode]"
|
2023-04-01 23:37:20 +02:00
|
|
|
|
select_placeholder1: str = "Select Model"
|
|
|
|
|
select_placeholder2: str = "Select Role"
|
|
|
|
|
select_placeholder3: str = "Create Role"
|
|
|
|
|
radio_placeholder: str = "Role Interaction"
|
|
|
|
|
radio_text1: str = "Select"
|
|
|
|
|
radio_text2: str = "Create"
|
2023-03-27 11:14:24 +02:00
|
|
|
|
stt_placeholder: str = "To Hear The Voice Of AI Press Play"
|
2023-03-23 22:58:02 +01:00
|
|
|
|
footer_title: str = "Support & Feedback"
|
2023-04-08 14:02:49 +02:00
|
|
|
|
footer_option0: str = "Chat"
|
2023-03-23 23:04:10 +01:00
|
|
|
|
footer_option1: str = "Info"
|
2023-04-08 14:04:38 +02:00
|
|
|
|
footer_option2: str = "Donate"
|
2023-03-23 22:58:02 +01:00
|
|
|
|
footer_chat: str = "AI Talks Chat"
|
|
|
|
|
footer_channel: str = "AI Talks Channel"
|
2023-04-02 11:52:30 +02:00
|
|
|
|
responsibility_denial: str = """
|
|
|
|
|
`AI Talks` uses the `Open AI` API to interact with `ChatGPT`, an AI that generates information.
|
|
|
|
|
Please note that neural network responses may not be reliable, inaccurate or irrelevant.
|
|
|
|
|
We are not responsible for any consequences associated with the use or reliance on the information provided.
|
|
|
|
|
Use the received data at your discretion.
|
|
|
|
|
"""
|
|
|
|
|
donates_info: str = """
|
|
|
|
|
`AI Talks` collects donations solely for the purpose of paying for the `Open AI` API.
|
|
|
|
|
This allows you to provide access to communication with AI for all users.
|
|
|
|
|
Support us for joint development and interaction with the intelligence of the future!
|
|
|
|
|
"""
|
2023-03-22 17:13:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Child data class for Russian
|
|
|
|
|
@dataclass
|
|
|
|
|
class RuLocale(Locale):
|
2023-03-24 00:35:04 +01:00
|
|
|
|
ai_role_prefix: str = "Вы девушка"
|
2023-04-09 15:50:05 +02:00
|
|
|
|
ai_role_postfix: str = "Отвечай максимально лаконично."
|
2023-03-22 17:13:02 +01:00
|
|
|
|
title: str = "Разговорчики с ИИ"
|
|
|
|
|
language: str = "Russian"
|
|
|
|
|
lang_code: str = "ru"
|
|
|
|
|
donates: str = "Поддержать Проект"
|
|
|
|
|
donates1: str = "Россия"
|
|
|
|
|
donates2: str = "Остальной Мир"
|
|
|
|
|
chat_placeholder: str = "Начните Вашу Беседу с ИИ:"
|
2023-04-07 22:10:58 +02:00
|
|
|
|
chat_run_btn: str = "Спросить"
|
2023-03-28 00:22:02 +02:00
|
|
|
|
chat_clear_btn: str = "Очистить"
|
|
|
|
|
chat_save_btn: str = "Сохранить"
|
2023-04-07 22:10:58 +02:00
|
|
|
|
speak_btn: str = "Нажмите и Говорите"
|
|
|
|
|
input_kind: str = "Вид ввода"
|
|
|
|
|
input_kind_1: str = "Текст"
|
|
|
|
|
input_kind_2: str = "Голос [тестовый режим]"
|
2023-04-01 23:37:20 +02:00
|
|
|
|
select_placeholder1: str = "Выберите Модель"
|
|
|
|
|
select_placeholder2: str = "Выберите Роль"
|
|
|
|
|
select_placeholder3: str = "Создайте Роль"
|
|
|
|
|
radio_placeholder: str = "Взаимодествие с Ролью"
|
|
|
|
|
radio_text1: str = "Выбрать"
|
|
|
|
|
radio_text2: str = "Создать"
|
2023-03-22 17:13:02 +01:00
|
|
|
|
stt_placeholder: str = "Чтобы Услышать ИИ Нажми Кнопку Проигрывателя"
|
2023-03-23 22:58:02 +01:00
|
|
|
|
footer_title: str = "Поддержка и Обратная Связь"
|
2023-04-08 14:02:49 +02:00
|
|
|
|
footer_option0: str = "Чат"
|
2023-04-08 14:04:38 +02:00
|
|
|
|
footer_option1: str = "Инфо"
|
|
|
|
|
footer_option2: str = "Донаты"
|
2023-03-23 22:58:02 +01:00
|
|
|
|
footer_chat: str = "Чат Разговорчики с ИИ"
|
|
|
|
|
footer_channel: str = "Канал Разговорчики с ИИ"
|
2023-04-02 11:52:30 +02:00
|
|
|
|
responsibility_denial: str = """
|
|
|
|
|
`Разговорчики с ИИ` использует API `Open AI` для взаимодействия с `ChatGPT`, ИИ, генерирующим информацию.
|
|
|
|
|
Пожалуйста, учтите, что ответы нейронной сети могут быть недостоверными, неточными или нерелевантными.
|
|
|
|
|
Мы не несём ответственности за любые последствия,
|
|
|
|
|
связанные с использованием или доверием к информации сгенерированныой нейронной сетью.
|
|
|
|
|
Используйте полученные данные генераций на своё усмотрение.
|
|
|
|
|
"""
|
|
|
|
|
donates_info: str = """
|
|
|
|
|
`AI Talks` собирает донаты исключительно с целью оплаты API `Open AI`.
|
|
|
|
|
Это позволяет обеспечить доступ к общению с ИИ для всех желающих пользователей.
|
|
|
|
|
Поддержите нас для совместного развития и взаимодействия с интеллектом будущего!
|
|
|
|
|
"""
|
2023-03-22 17:13:02 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AI_ROLE_OPTIONS_EN = [
|
|
|
|
|
"helpful assistant",
|
|
|
|
|
"code assistant",
|
|
|
|
|
"code reviewer",
|
|
|
|
|
"text improver",
|
|
|
|
|
"cinema expert",
|
|
|
|
|
"sport expert",
|
|
|
|
|
"online games expert",
|
|
|
|
|
"food recipes expert",
|
|
|
|
|
"English grammar expert",
|
2023-03-28 02:22:21 +02:00
|
|
|
|
"friendly and helpful teaching assistant",
|
|
|
|
|
"laconic assistant",
|
2023-03-22 17:13:02 +01:00
|
|
|
|
"helpful, pattern-following assistant",
|
2023-03-28 02:22:21 +02:00
|
|
|
|
"translate corporate jargon into plain English",
|
2023-03-22 17:13:02 +01:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
AI_ROLE_OPTIONS_RU = [
|
|
|
|
|
"ассистент, который готов помочь",
|
|
|
|
|
"ассистент программиста",
|
|
|
|
|
"рецензент кода программиста",
|
|
|
|
|
"эксперт по улучшению текста",
|
|
|
|
|
"эксперт по кинематографу",
|
|
|
|
|
"эксперт в области спорта",
|
|
|
|
|
"эксперт в онлайн-играх",
|
|
|
|
|
"эксперт по рецептам блюд",
|
|
|
|
|
"эксперт по английской грамматике",
|
|
|
|
|
"эксперт по русской грамматике",
|
2023-03-28 02:22:21 +02:00
|
|
|
|
"дружелюбный и полезный помощник преподавателя",
|
|
|
|
|
"лаконичный помощник",
|
2023-03-22 17:13:02 +01:00
|
|
|
|
"полезный помощник, следующий шаблонам",
|
2023-03-28 02:22:21 +02:00
|
|
|
|
"переводчик корпоративного жаргона на простой русский",
|
2023-03-22 17:13:02 +01:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
en = EnLocale(ai_role_options=AI_ROLE_OPTIONS_EN)
|
|
|
|
|
ru = RuLocale(ai_role_options=AI_ROLE_OPTIONS_RU)
|