Spaces:
Runtime error
Runtime error
Pretty app with spinner, columns and more
Browse files
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 |
-
|
44 |
-
|
45 |
-
|
|
|
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()
|