zakaria-narjis commited on
Commit
b872988
·
1 Parent(s): af79ab5

add video tutorial and frontpage update

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. app.py +21 -2
  3. demo.mp4 +3 -0
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  .pth filter=lfs diff=lfs merge=lfs -text
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  .pth filter=lfs diff=lfs merge=lfs -text
37
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -222,10 +222,29 @@ for name in SLIDERS:
222
  st.session_state[f"slider_{name}"] = 0
223
 
224
  # Set up the Streamlit app
225
- st.title("Photo Enhancement App")
 
226
 
227
  # File uploader in the main area
228
- uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png",".tif"], on_change=reset_on_upload)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
 
230
  if uploaded_file is not None:
231
  # Load the original image
 
222
  st.session_state[f"slider_{name}"] = 0
223
 
224
  # Set up the Streamlit app
225
+
226
+ uploaded_file = None
227
 
228
  # File uploader in the main area
229
+
230
+ _, center_col,_ = st.columns([1, 2, 1])
231
+ if uploaded_file is None:
232
+ with center_col:
233
+ st.title("Welcome to the AI Photo Enhancement App")
234
+ st.write("This application uses Reinforcement Learning to enhance your photos with ease and flexibility. Below, you'll find a short tutorial video on how to use the app.")
235
+ uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png",".tif"], on_change=reset_on_upload)
236
+ st.video("demo.mp4",muted =True) # Replace with your video path
237
+ st.subheader("How to Use the App:")
238
+ st.markdown("""
239
+ 1. **Upload your image** to get started.
240
+ 2. Proceed to the **editing phase**, where you can:
241
+ - View the color histograms and adjust sliders for various tonal values.
242
+ - Use the **Auto Enhance** button to let the agent automatically enhance your image.
243
+ - Use the **Auto Random Enhance** button to receive different suggested editing parameters each time.
244
+ - **Manually refine** your image by adjusting slider values and clicking the **Apply Edits** button at the bottom of the sidebar.
245
+ """)
246
+
247
+ st.write("Feel free to explore and enhance your images effortlessly!")
248
 
249
  if uploaded_file is not None:
250
  # Load the original image
demo.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c5ea5b9f03b7f239a84cebd85cc53001ee8b76c8fd0486adc086ae33294c720
3
+ size 5763978