adil9858 commited on
Commit
42ba863
1 Parent(s): 0ec22d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -9,9 +9,12 @@ with open('naive_bayes_model.pkl', 'rb') as file:
9
  # Define the Streamlit app
10
  def main():
11
  st.title("Crop Recommendation Model")
 
12
  st.write("Developed by: Adil")
13
- st.write("This is a simple web app to make predictions using a Naive Bayes model.")
14
-
 
 
15
  st.sidebar.header("Enter Features")
16
 
17
  # Input fields for each feature
@@ -36,9 +39,7 @@ def main():
36
  st.header("Prediction")
37
  st.write("Predicted crop:", prediction[0])
38
 
39
- # Display the labels in a well-formatted box
40
- st.info("Labels the model can predict:")
41
- st.write(model.classes_)
42
 
43
  if __name__ == '__main__':
44
  main()
 
9
  # Define the Streamlit app
10
  def main():
11
  st.title("Crop Recommendation Model")
12
+ st.image("logo.png", width=200)
13
  st.write("Developed by: Adil")
14
+ st.write("This is an AI powered app for Crop Recommendations")
15
+ # Display the labels in a well-formatted box
16
+ st.info("Labels the model can predict:")
17
+ st.write(model.classes_)
18
  st.sidebar.header("Enter Features")
19
 
20
  # Input fields for each feature
 
39
  st.header("Prediction")
40
  st.write("Predicted crop:", prediction[0])
41
 
42
+
 
 
43
 
44
  if __name__ == '__main__':
45
  main()