Spaces:
Running
Running
Tu Nombre commited on
Commit ·
9cef76a
1
Parent(s): 3e6c321
panel cliente mejorado
Browse files- cliente_template.py +24 -5
cliente_template.py
CHANGED
|
@@ -103,11 +103,30 @@ def start():
|
|
| 103 |
|
| 104 |
threading.Thread(target=start, daemon=True).start()
|
| 105 |
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
value=lambda: "\n".join(LOGS[-18:]) if LOGS else "Iniciando sistema...")
|
| 111 |
-
gr.
|
|
|
|
| 112 |
|
| 113 |
demo.launch()
|
|
|
|
| 103 |
|
| 104 |
threading.Thread(target=start, daemon=True).start()
|
| 105 |
|
| 106 |
+
CONTADOR_VIDEOS = 0
|
| 107 |
+
ULTIMO_VIDEO = "Ninguno aún"
|
| 108 |
+
|
| 109 |
+
def get_stats():
|
| 110 |
+
return f"📊 Videos publicados: {CONTADOR_VIDEOS} | 🎬 Último: {ULTIMO_VIDEO} | ⚡ Estado: {STATUS}"
|
| 111 |
+
|
| 112 |
+
with gr.Blocks(css="""
|
| 113 |
+
body{background:#0a0a0a!important;}
|
| 114 |
+
.gradio-container{background:#0a0a0a!important;color:#fff!important;max-width:900px!important;margin:0 auto!important;}
|
| 115 |
+
h1{color:#ff2d2d!important;font-family:'Bebas Neue',sans-serif!important;font-size:3rem!important;text-align:center!important;}
|
| 116 |
+
.label{color:#ff2d2d!important;font-weight:700!important;}
|
| 117 |
+
textarea{background:#111!important;color:#D4AF37!important;font-family:monospace!important;border:1px solid #333!important;}
|
| 118 |
+
""", title="TubeBot") as demo:
|
| 119 |
+
gr.Markdown(f"# 🤖 TUBEBOT — {NICHO.upper()}")
|
| 120 |
+
gr.Markdown(f"### Tu canal de YouTube publica solo cada 4 horas")
|
| 121 |
+
gr.Markdown("---")
|
| 122 |
+
|
| 123 |
+
with gr.Row():
|
| 124 |
+
gr.Textbox(label="📊 Panel de control", every=3, value=lambda: get_stats(), interactive=False)
|
| 125 |
+
|
| 126 |
+
gr.Markdown("### 📜 Logs en tiempo real")
|
| 127 |
+
gr.Textbox(label="", lines=20, every=4,
|
| 128 |
value=lambda: "\n".join(LOGS[-18:]) if LOGS else "Iniciando sistema...")
|
| 129 |
+
gr.Markdown("---")
|
| 130 |
+
gr.Markdown(f"### 💡 ¿Problemas? Escríbeme al WhatsApp: +34656691085")
|
| 131 |
|
| 132 |
demo.launch()
|