riyageorge commited on
Commit
48ec66e
·
1 Parent(s): e1bb13a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -93,7 +93,7 @@ def main():
93
  st.title("Multitasking App")
94
 
95
  # Sidebar dropdown for selecting tasks
96
- task = st.sidebar.radio("Select Task", (["Tumor Detection", "SMS Spam Detection", "Movie Sentiment Analysis"]))
97
 
98
  # Depending on the selected task, provide model options
99
  if task == "Tumor Detection":
@@ -115,7 +115,7 @@ def main():
115
 
116
 
117
 
118
- elif task == "SMS Spam Detection":
119
  model = st.sidebar.radio("Select Model", (["Perceptron", "Backpropagation", "DNN", "RNN", "LSTM"]))
120
 
121
  if model == "RNN":
@@ -150,11 +150,7 @@ def main():
150
  st.write(f"The message is classified as: {prediction_result}")
151
  else:
152
  st.write("Please enter some text for prediction")
153
-
154
-
155
- elif task == "Movie Sentiment Analysis":
156
- model = st.sidebar.radio("Select Model", (["Perceptron", "Backpropagation", "DNN", "RNN", "LSTM", "GRU"]))
157
-
158
 
 
159
  if __name__ == "__main__":
160
  main()
 
93
  st.title("Multitasking App")
94
 
95
  # Sidebar dropdown for selecting tasks
96
+ task = st.sidebar.radio("Select Task", (["Tumor Detection", "Sentiment Classification"]))
97
 
98
  # Depending on the selected task, provide model options
99
  if task == "Tumor Detection":
 
115
 
116
 
117
 
118
+ elif task == "Sentiment Classification":
119
  model = st.sidebar.radio("Select Model", (["Perceptron", "Backpropagation", "DNN", "RNN", "LSTM"]))
120
 
121
  if model == "RNN":
 
150
  st.write(f"The message is classified as: {prediction_result}")
151
  else:
152
  st.write("Please enter some text for prediction")
 
 
 
 
 
153
 
154
+
155
  if __name__ == "__main__":
156
  main()