Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ elif option == "Age Detection":
|
|
| 32 |
if uploaded_files is not None:
|
| 33 |
Image=Image.open(uploaded_files)
|
| 34 |
|
| 35 |
-
st.write(agepipe(Image)[0]["label"])
|
| 36 |
elif option == "Image Classification":
|
| 37 |
st.title("Welcome to object detection")
|
| 38 |
|
|
@@ -53,7 +53,7 @@ elif option == "Emotion Detection":
|
|
| 53 |
text=st.text_area("Enter your text")
|
| 54 |
if st.button("Submit"):
|
| 55 |
if text:
|
| 56 |
-
st.write("Emotion : ",emopipe(text)["label"])
|
| 57 |
else:
|
| 58 |
st.write("Please enter text.")
|
| 59 |
|
|
|
|
| 32 |
if uploaded_files is not None:
|
| 33 |
Image=Image.open(uploaded_files)
|
| 34 |
|
| 35 |
+
st.write("Detected age is ",agepipe(Image)[0]["label"])
|
| 36 |
elif option == "Image Classification":
|
| 37 |
st.title("Welcome to object detection")
|
| 38 |
|
|
|
|
| 53 |
text=st.text_area("Enter your text")
|
| 54 |
if st.button("Submit"):
|
| 55 |
if text:
|
| 56 |
+
st.write("Emotion : ",emopipe(text)[0]["label"])
|
| 57 |
else:
|
| 58 |
st.write("Please enter text.")
|
| 59 |
|