Spaces:
Sleeping
Sleeping
Commit
·
810c90e
1
Parent(s):
71cbd16
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ st.title("Welcome To DL Predictions")
|
|
34 |
# Choose between tasks
|
35 |
task = st.radio("Please Select the task you want", ("Sentiment Classification using DL", "Tumor Detection from image"))
|
36 |
|
37 |
-
if task == "Sentiment Classification":
|
38 |
# Input box for new review
|
39 |
new_review_text = st.text_area("Enter a New Review:", value="")
|
40 |
if st.button("Submit") and not new_review_text.strip():
|
@@ -63,7 +63,7 @@ if task == "Sentiment Classification":
|
|
63 |
st.subheader("Sentiment Classification Results")
|
64 |
st.write(f"**{result}**")
|
65 |
|
66 |
-
elif task == "Tumor Detection":
|
67 |
st.subheader("Tumor Detection")
|
68 |
uploaded_file = st.file_uploader("Choose a tumor image...", type=["jpg", "jpeg", "png"])
|
69 |
|
|
|
34 |
# Choose between tasks
|
35 |
task = st.radio("Please Select the task you want", ("Sentiment Classification using DL", "Tumor Detection from image"))
|
36 |
|
37 |
+
if task == "Sentiment Classification using DL":
|
38 |
# Input box for new review
|
39 |
new_review_text = st.text_area("Enter a New Review:", value="")
|
40 |
if st.button("Submit") and not new_review_text.strip():
|
|
|
63 |
st.subheader("Sentiment Classification Results")
|
64 |
st.write(f"**{result}**")
|
65 |
|
66 |
+
elif task == "Tumor Detection from image":
|
67 |
st.subheader("Tumor Detection")
|
68 |
uploaded_file = st.file_uploader("Choose a tumor image...", type=["jpg", "jpeg", "png"])
|
69 |
|