Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def tts_chechen_logic(text):
|
|
| 27 |
return sampling_rate, audio_data, file_path
|
| 28 |
|
| 29 |
# --- БЛОК TELEGRAM БОТА ---
|
| 30 |
-
TG_TOKEN = "8287698372:
|
| 31 |
|
| 32 |
async def handle_tg_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
| 33 |
user_text = update.message.text
|
|
@@ -60,10 +60,10 @@ def gradio_interface(text):
|
|
| 60 |
# Настройка внешнего вида сайта
|
| 61 |
iface = gr.Interface(
|
| 62 |
fn=gradio_interface,
|
| 63 |
-
inputs=gr.Textbox(label="Введите текст на чеченском", placeholder="Мадарра
|
| 64 |
outputs=gr.Audio(label="Озвучка"),
|
| 65 |
title="NoxchiynAz — Чеченский синтез речи",
|
| 66 |
-
description="Бот в Telegram: @
|
| 67 |
)
|
| 68 |
|
| 69 |
iface.launch()
|
|
|
|
| 27 |
return sampling_rate, audio_data, file_path
|
| 28 |
|
| 29 |
# --- БЛОК TELEGRAM БОТА ---
|
| 30 |
+
TG_TOKEN = "8287698372:AAEwoOWgQWHbeyDmJdN0B-OpKpy7-TARHMg"
|
| 31 |
|
| 32 |
async def handle_tg_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
|
| 33 |
user_text = update.message.text
|
|
|
|
| 60 |
# Настройка внешнего вида сайта
|
| 61 |
iface = gr.Interface(
|
| 62 |
fn=gradio_interface,
|
| 63 |
+
inputs=gr.Textbox(label="Введите текст на чеченском", placeholder="Мадарра йазъе..."),
|
| 64 |
outputs=gr.Audio(label="Озвучка"),
|
| 65 |
title="NoxchiynAz — Чеченский синтез речи",
|
| 66 |
+
description="Бот в Telegram: @JilmaMott_bot (работает 24/7)"
|
| 67 |
)
|
| 68 |
|
| 69 |
iface.launch()
|