codebydante commited on
Commit
4bba595
路
verified 路
1 Parent(s): 34b6c2c

Upload 40 files

Browse files
Files changed (1) hide show
  1. app.py +12 -17
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
- # Interfaz Gradio para Hugging Face Free SDK
40
- with gr.Blocks(title="Twisted Audio 馃帶") as demo:
41
- gr.Markdown(
42
- """
43
- # 馃帶 Twisted Audio
44
- ### 馃煝 Estado: Bot de Telegram Activo 24/7 (Gradio Free SDK)
45
-
46
- Este Space aloja el bot de Telegram **Twisted Audio** de forma **100% Gratuita**.
47
-
48
- - Env铆a cualquier video a tu bot de Telegram para extraer su audio MP3 con portada y metadatos.
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)