Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,14 +43,14 @@ def predict(UDI, air_temp, process_temp, rotational_speed, torque, tool_wear):
|
|
| 43 |
interface = gr.Interface(
|
| 44 |
fn=predict,
|
| 45 |
inputs=[
|
| 46 |
-
gr.
|
| 47 |
-
gr.
|
| 48 |
-
gr.
|
| 49 |
-
gr.
|
| 50 |
-
gr.
|
| 51 |
-
gr.
|
| 52 |
],
|
| 53 |
-
outputs=gr.
|
| 54 |
title="Predictive Maintenance Model",
|
| 55 |
description="Enter the values for the features to get the model's prediction."
|
| 56 |
)
|
|
|
|
| 43 |
interface = gr.Interface(
|
| 44 |
fn=predict,
|
| 45 |
inputs=[
|
| 46 |
+
gr.Number(label="UDI"),
|
| 47 |
+
gr.Number(label="Air temperature [K]"),
|
| 48 |
+
gr.Number(label="Process temperature [K]"),
|
| 49 |
+
gr.Number(label="Rotational speed [rpm]"),
|
| 50 |
+
gr.Number(label="Torque [Nm]"),
|
| 51 |
+
gr.Number(label="Tool wear [min]")
|
| 52 |
],
|
| 53 |
+
outputs=gr.Textbox(label="Prediction"),
|
| 54 |
title="Predictive Maintenance Model",
|
| 55 |
description="Enter the values for the features to get the model's prediction."
|
| 56 |
)
|