Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -672,14 +672,12 @@ if uploaded_file is not None:
|
|
| 672 |
# Display raw JSON data in expander
|
| 673 |
with st.expander("View Raw JSON Response"):
|
| 674 |
st.json(result)
|
|
|
|
| 675 |
else:
|
| 676 |
st.warning("No faces detected in the image")
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
return matcher.ratio()
|
| 684 |
-
if __name__ == "__main__":
|
| 685 |
-
main()
|
|
|
|
| 672 |
# Display raw JSON data in expander
|
| 673 |
with st.expander("View Raw JSON Response"):
|
| 674 |
st.json(result)
|
| 675 |
+
|
| 676 |
else:
|
| 677 |
st.warning("No faces detected in the image")
|
| 678 |
+
|
| 679 |
+
def calculate_similarity(text1, text2):
|
| 680 |
+
matcher = SequenceMatcher(None, text1, text2)
|
| 681 |
+
return matcher.ratio()
|
| 682 |
+
if __name__ == "__main__":
|
| 683 |
+
main()
|
|
|
|
|
|
|
|
|