Amrrs commited on
Commit
99cccc7
1 Parent(s): f387d83

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +28 -0
app.py ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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="James Webb Space Telescope vs Hubble Telescope Images", layout="centered")
6
+
7
+ st.title("James Webb vs Hubble Telescope Pictures")
8
+
9
+ st.markdown("# Southern Nebula")
10
+
11
+ # render image-comparison
12
+ image_comparison(
13
+ img1="https://www.webbcompare.com/img/hubble/southern_nebula_700.jpg",
14
+ img2="https://www.webbcompare.com/img/webb/southern_nebula_700.jpg",
15
+ label1="Hubble",
16
+ label2="Webb"
17
+ )
18
+
19
+
20
+ st.markdown("# Galaxy Cluster SMACS 0723")
21
+
22
+ # render image-comparison
23
+ image_comparison(
24
+ img1="https://www.webbcompare.com/img/hubble/deep_field_700.jpg",
25
+ img2="https://www.webbcompare.com/img/webb/deep_field_700.jpg",
26
+ label1="Hubble",
27
+ label2="Webb"
28
+ )