ajuneja23 commited on
Commit
01ad46d
·
verified ·
1 Parent(s): 2fffeaa

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def predict(x):
4
+ w = 0.5
5
+ b = 2
6
+ return w * x + b
7
+
8
+ interface = gr.Interface(
9
+ fn=predict,
10
+ inputs="number",
11
+ outputs="number",
12
+ title="Basic Linear Regression",
13
+ description="Enter a value and predict the output based on the linear equation.",
14
+ )
15
+
16
+ interface.launch()