Spaces:
Runtime error
Runtime error
rickystanley76
commited on
Commit
•
bb4569a
1
Parent(s):
ce16d93
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 using Streamlit", layout="centered")
|
6 |
+
|
7 |
+
st.title("Comparison of Images using Streamlit")
|
8 |
+
|
9 |
+
st.markdown("# BBQ Images")
|
10 |
+
|
11 |
+
# render image-comparison
|
12 |
+
image_comparison(
|
13 |
+
img1="img1.jpg",
|
14 |
+
img2="img2.jpg",
|
15 |
+
label1="Image 1",
|
16 |
+
label2="Image 2"
|
17 |
+
)
|