lunde commited on
Commit
f262293
1 Parent(s): 0691d6d

Pretty app with spinner, columns and more

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -39,9 +39,13 @@ def main():
39
  uploaded_file = st.file_uploader("Lowlight Image")
40
  if uploaded_file:
41
  data_lowlight = Image.open(uploaded_file)
 
 
 
42
 
43
- fixed_img = fix_lowlight(data_lowlight)
44
-
45
- st.image(fixed_img, caption="Enhanced Image", use_column_width=True)
 
46
 
47
  main()
 
39
  uploaded_file = st.file_uploader("Lowlight Image")
40
  if uploaded_file:
41
  data_lowlight = Image.open(uploaded_file)
42
+ col1, col2 = st.columns(2)
43
+ col1.write("Original (Lowlight)")
44
+ col1.image(data_lowlight, caption="Lowlight Image", use_column_width=True)
45
 
46
+ col2.write("Enhanced")
47
+ with st.spinner('🧠 Enhancing...'):
48
+ fixed_img = fix_lowlight(data_lowlight)
49
+ col2.image(fixed_img, caption="Enhanced Image", use_column_width=True)
50
 
51
  main()