Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def predict(soil_moisture, temperature, air_humidity, light_intensity):
|
|
| 15 |
prediction = model.predict(std_data)
|
| 16 |
return int(prediction[0]) # Convert prediction to int (0 or 1)
|
| 17 |
|
| 18 |
-
# Set up Gradio
|
| 19 |
iface = gr.Interface(
|
| 20 |
fn=predict,
|
| 21 |
inputs=[
|
|
|
|
| 15 |
prediction = model.predict(std_data)
|
| 16 |
return int(prediction[0]) # Convert prediction to int (0 or 1)
|
| 17 |
|
| 18 |
+
# Set up Gradio interfacea
|
| 19 |
iface = gr.Interface(
|
| 20 |
fn=predict,
|
| 21 |
inputs=[
|