Spaces:
Running on Zero
Running on Zero
Upload 40 files
Browse files
app.py
CHANGED
|
@@ -36,23 +36,18 @@ def start_bot_thread():
|
|
| 36 |
# Iniciar el bot de Telegram en segundo plano
|
| 37 |
threading.Thread(target=start_bot_thread, daemon=True).start()
|
| 38 |
|
| 39 |
-
#
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
gr.Interface(
|
| 52 |
-
fn=lambda x: f"馃 Bot activo. Mensaje recibido: '{x}'",
|
| 53 |
-
inputs=gr.Textbox(label="Prueba de estado", placeholder="Escribe algo aqu铆..."),
|
| 54 |
-
outputs="text"
|
| 55 |
-
)
|
| 56 |
|
| 57 |
if __name__ == "__main__":
|
| 58 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 36 |
# Iniciar el bot de Telegram en segundo plano
|
| 37 |
threading.Thread(target=start_bot_thread, daemon=True).start()
|
| 38 |
|
| 39 |
+
# Funci贸n comprobatoria
|
| 40 |
+
def check_status(user_input):
|
| 41 |
+
return f"馃煝 Bot 'Twisted Audio' activo 24/7 en Telegram. Procesado: {user_input}"
|
| 42 |
+
|
| 43 |
+
# Interfaz Gradio 100% compatible con Gradio 6
|
| 44 |
+
demo = gr.Interface(
|
| 45 |
+
fn=check_status,
|
| 46 |
+
inputs=gr.Textbox(label="Estado del Servidor", placeholder="Escribe algo para verificar..."),
|
| 47 |
+
outputs=gr.Textbox(label="Respuesta de confirmaci贸n"),
|
| 48 |
+
title="馃帶 Twisted Audio",
|
| 49 |
+
description="### Bot de Telegram Activo 24/7 (Gradio Free SDK)\nEnv铆a tus videos al bot de Telegram para extraer su audio en formato MP3."
|
| 50 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
if __name__ == "__main__":
|
| 53 |
demo.launch(server_name="0.0.0.0", server_port=7860)
|