Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,6 @@ import gradio as gr
|
|
| 2 |
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
| 5 |
-
|
| 6 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 7 |
-
iface.launch()
|
| 8 |
-
|
| 9 |
-
|
| 10 |
import random
|
| 11 |
|
| 12 |
def predict_price(median_income, housing_median_age, total_rooms, total_bedrooms, population, households, latitude, longitude):
|
|
@@ -33,3 +28,6 @@ outputs = gr.Text(label="Predicted Housing Price")
|
|
| 33 |
|
| 34 |
# Create Gradio interface
|
| 35 |
gr.Interface(fn=predict_price, inputs=inputs, outputs=outputs, title="Housing Price Prediction").launch()
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
import random
|
| 6 |
|
| 7 |
def predict_price(median_income, housing_median_age, total_rooms, total_bedrooms, population, households, latitude, longitude):
|
|
|
|
| 28 |
|
| 29 |
# Create Gradio interface
|
| 30 |
gr.Interface(fn=predict_price, inputs=inputs, outputs=outputs, title="Housing Price Prediction").launch()
|
| 31 |
+
|
| 32 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 33 |
+
iface.launch()
|