Spaces:
Sleeping
Sleeping
Download app.py from Lordjames21/mm: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/Lordjames21/mm/resolve/refs%2Fpr%2F1/app.py
- Command line
-
hf download hf://spaces/Lordjames21/mm@refs/pr/1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Lordjames21/mm/resolve/refs%2Fpr%2F1/app.py
630 Bytes
| import gradio as gr | |
| import psutil | |
| import time | |
| def get_sys_info(): | |
| return f"Status: Active | CPU Load: {psutil.cpu_percent()}% | Threads: {psutil.cpu_count()} | Mode: Inference-Optimized" | |
| with gr.Blocks(title="AI Inference Node") as demo: | |
| gr.Markdown("# 🤖 AI Model Inference Engine") | |
| gr.Markdown("Este nodo procesa tareas de inferencia para modelos de lenguaje a pequeña escala.") | |
| out = gr.Textbox(label="Node Health", value=get_sys_info()) | |
| btn = gr.Button("Update Node Status") | |
| btn.click(get_sys_info, outputs=out) | |
| if __name__ == '__main__': | |
| demo.launch(server_name='0.0.0.0', server_port=7860) | |