Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,3 +55,9 @@ if st.button("Detect"):
|
|
55 |
st.write(f"**Confidence Score:** {confidence:.2f}%")
|
56 |
else:
|
57 |
st.warning("Please enter a prompt to test.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
st.write(f"**Confidence Score:** {confidence:.2f}%")
|
56 |
else:
|
57 |
st.warning("Please enter a prompt to test.")
|
58 |
+
|
59 |
+
import os
|
60 |
+
|
61 |
+
if st.button("Train Model"):
|
62 |
+
os.system("python train_model.py")
|
63 |
+
st.success("Model training complete. Saved as deep_learning_model.h5")
|