Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,22 @@ pickle.dump(modelodef, open("modelodef.pkl", "wb"))
|
|
37 |
|
38 |
#create a function for gradio
|
39 |
def RCS(JET, Suelo,SPT, WtoC, Presion, Velocidad):
|
40 |
-
|
41 |
-
prediction = modelodef.predict(
|
42 |
return prediction
|
43 |
|
44 |
-
|
45 |
-
app = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
app.launch()
|
|
|
37 |
|
38 |
#create a function for gradio
|
39 |
def RCS(JET, Suelo,SPT, WtoC, Presion, Velocidad):
|
40 |
+
modelodef = pickle.load(open("modelodef.pkl", "rb"))
|
41 |
+
prediction = modelodef.predict([[JET, Suelo,SPT, WtoC, Presion, Velocidad]])
|
42 |
return prediction
|
43 |
|
44 |
+
|
45 |
+
app = gr.Interface(
|
46 |
+
RCS,
|
47 |
+
inputs=[
|
48 |
+
gr.Number(value=1, label="JET"),
|
49 |
+
gr.Number(value=1, label="Suelo"),
|
50 |
+
gr.Number(value=1, label="SPT"),
|
51 |
+
gr.Number(value=1, label="WtoC"),
|
52 |
+
gr.Number(value=1, label="Presion"),
|
53 |
+
gr.Number(value=1, label="velocidad"),
|
54 |
+
],
|
55 |
+
outputs=[gr.Text(label="UCS")],
|
56 |
+
)
|
57 |
+
|
58 |
app.launch()
|