Update template_gradio_interface.py
Browse files
template_gradio_interface.py
CHANGED
@@ -71,7 +71,7 @@ def call_predict(inference_dict, cols_order):
|
|
71 |
print(y_pred_rescaled[0][0])
|
72 |
print(y_pred_rescaled[0][1])
|
73 |
# return y_pred_rescaled[0][0], 10, y_pred_rescaled[0][1], 10, y_pred_rescaled[0][2], 10, fig
|
74 |
-
return y_pred_rescaled[0][0], np.round(np.random.uniform(2, 5), 1), y_pred_rescaled[0][1], np.round(np.random.uniform(2, 5), 1), fig
|
75 |
|
76 |
return lambda *x: predict_from_list(x)
|
77 |
|
|
|
71 |
print(y_pred_rescaled[0][0])
|
72 |
print(y_pred_rescaled[0][1])
|
73 |
# return y_pred_rescaled[0][0], 10, y_pred_rescaled[0][1], 10, y_pred_rescaled[0][2], 10, fig
|
74 |
+
return np.round(y_pred_rescaled[0][0], 1), np.round(np.random.uniform(2, 5), 1), np.round(y_pred_rescaled[0][1], 1), np.round(np.random.uniform(2, 5), 1), fig
|
75 |
|
76 |
return lambda *x: predict_from_list(x)
|
77 |
|