pruebamcp / app.py
gusdelact's picture
Update app.py
9883f98 verified
raw
history blame contribute delete
376 Bytes
import gradio as gr
import gradio as gr
def calcular(x1, x2):
x1 = float(x1)
x2 = float(x2)
return 0.5 * x1 - 0.033 * x2 + 4.33
iface = gr.Interface(
fn=calcular,
inputs=[gr.Textbox(label="x1"), gr.Textbox(label="x2")],
outputs=gr.Textbox(label="Resultado"),
title="Regresion lineal Simple"
)
# Ejecutar interfaz
iface.launch(mcp_server=True)