Spaces:
Running
Running
Commit
·
324e51f
1
Parent(s):
329853e
Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ elif mode == "Train Mode":
|
|
77 |
# Update the model with the user-provided image and label
|
78 |
target = np.zeros(len(labels))
|
79 |
target[labels.index(user_label)] = 1
|
80 |
-
|
81 |
st.success(f'Model has been trained with the new image and label.')
|
82 |
except Exception as e:
|
83 |
st.error(f"An error occurred: {e}. Please contact us EcoClim Solutions at EcoClimSolutions.wordpress.com.")
|
|
|
77 |
# Update the model with the user-provided image and label
|
78 |
target = np.zeros(len(labels))
|
79 |
target[labels.index(user_label)] = 1
|
80 |
+
tf.train.batch(image, target)
|
81 |
st.success(f'Model has been trained with the new image and label.')
|
82 |
except Exception as e:
|
83 |
st.error(f"An error occurred: {e}. Please contact us EcoClim Solutions at EcoClimSolutions.wordpress.com.")
|