File size: 298 Bytes
01ad46d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
def predict(x):
w = 0.5
b = 2
return w * x + b
interface = gr.Interface(
fn=predict,
inputs="number",
outputs="number",
title="Basic Linear Regression",
description="Enter a value and predict the output based on the linear equation.",
)
interface.launch() |