Spaces:
Sleeping
Sleeping
Commit
•
0a5ae76
1
Parent(s):
788c450
Update app.py
Browse files
app.py
CHANGED
@@ -5,14 +5,14 @@ from sklearn.preprocessing import MinMaxScaler
|
|
5 |
from sklearn.linear_model import LinearRegression
|
6 |
import gradio as gr
|
7 |
|
8 |
-
longitude = gr.
|
9 |
-
latitude = gr.
|
10 |
-
housing_median_age = gr.
|
11 |
-
total_rooms = gr.
|
12 |
-
total_bedrooms = gr.
|
13 |
-
population = gr.
|
14 |
-
households = gr.
|
15 |
-
median_income = gr.
|
16 |
output_house_value = gr.outputs.Textbox(label="Predicted house value")
|
17 |
|
18 |
def process_function(longitude, latitude, housing_median_age, total_rooms, total_bedrooms, population, households, median_income):
|
|
|
5 |
from sklearn.linear_model import LinearRegression
|
6 |
import gradio as gr
|
7 |
|
8 |
+
longitude = gr.Textbox(label="Longitude")
|
9 |
+
latitude = gr.Textbox(label="Latitude")
|
10 |
+
housing_median_age = gr.Textbox(label="Housing median age")
|
11 |
+
total_rooms = gr.Textbox(label="Total rooms")
|
12 |
+
total_bedrooms = gr.Textbox(label="Total bedrooms")
|
13 |
+
population = gr.Textbox(label="Population")
|
14 |
+
households = gr.Textbox(label="Households")
|
15 |
+
median_income = gr.Textbox(label="Median income")
|
16 |
output_house_value = gr.outputs.Textbox(label="Predicted house value")
|
17 |
|
18 |
def process_function(longitude, latitude, housing_median_age, total_rooms, total_bedrooms, population, households, median_income):
|