Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,6 @@ a6= gr.Number(label='Line Item Insurance (USD)')
|
|
| 15 |
def predict_pack_price(a1,a2,a3,a4,a5,a6):
|
| 16 |
input_array=np.array([[a1,a2,a3,a4,a5,a6]])
|
| 17 |
pred=model.predict(input_array)
|
| 18 |
-
print(pred)
|
| 19 |
return pred
|
| 20 |
|
| 21 |
# def predict_unit_price(a1,a2,a3,a4,a5,a6):
|
|
@@ -28,4 +27,4 @@ def predict_pack_price(a1,a2,a3,a4,a5,a6):
|
|
| 28 |
demo1 =gr.Interface(fn=predict_pack_price,inputs=['number','number','number','number','number','number'],outputs='number',description='PACK PRICE')
|
| 29 |
# demo2 =gr.Interface(fn=predict_unit_price,inputs=[a1,a2,a3,a4,a5,a6],outputs=outputs2,description="UNIT PRICE")
|
| 30 |
|
| 31 |
-
demo1.launch(
|
|
|
|
| 15 |
def predict_pack_price(a1,a2,a3,a4,a5,a6):
|
| 16 |
input_array=np.array([[a1,a2,a3,a4,a5,a6]])
|
| 17 |
pred=model.predict(input_array)
|
|
|
|
| 18 |
return pred
|
| 19 |
|
| 20 |
# def predict_unit_price(a1,a2,a3,a4,a5,a6):
|
|
|
|
| 27 |
demo1 =gr.Interface(fn=predict_pack_price,inputs=['number','number','number','number','number','number'],outputs='number',description='PACK PRICE')
|
| 28 |
# demo2 =gr.Interface(fn=predict_unit_price,inputs=[a1,a2,a3,a4,a5,a6],outputs=outputs2,description="UNIT PRICE")
|
| 29 |
|
| 30 |
+
demo1.launch()
|