Spaces:
Sleeping
Sleeping
Odin-son commited on
Commit ·
1e56fab
1
Parent(s): d014365
add image comparison lib
Browse files- app.py +9 -2
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -1,4 +1,11 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from streamlit_image_comparison import image_comparison
|
| 3 |
|
| 4 |
+
# set page config
|
| 5 |
+
st.set_page_config(page_title="Image-Comparison Example", layout="centered")
|
| 6 |
+
|
| 7 |
+
# render image-comparison
|
| 8 |
+
image_comparison(
|
| 9 |
+
img1="image1.jpg",
|
| 10 |
+
img2="image2.jpg",
|
| 11 |
+
)
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
streamlit-image-comparison
|