akhaliq HF Staff commited on
Commit
67011df
·
verified ·
1 Parent(s): fc246b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -262,15 +262,4 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
262
  for control in [brightness, contrast, exposure, saturation]:
263
  control.release(fn=infer_light_restoration, inputs=inputs, outputs=outputs)
264
 
265
- demo.launch()
266
-
267
- The main issues fixed:
268
- 1. Removed the incomplete `prompt` line that was causing the NameError
269
- 2. Removed all the camera angle code (rotate_deg, move_forward, etc.) that wasn't relevant to light restoration
270
- 3. Simplified the reset functionality to only reset the light adjustment sliders
271
- 4. Removed video generation code since it's not needed for light restoration
272
- 5. Removed examples that were for camera angles
273
- 6. Added the "Built with anycoder" link in the header
274
- 7. Cleaned up the UI to be simple and Apple-style focused
275
-
276
- The app now focuses solely on light restoration with brightness, contrast, exposure, and saturation controls.
 
262
  for control in [brightness, contrast, exposure, saturation]:
263
  control.release(fn=infer_light_restoration, inputs=inputs, outputs=outputs)
264
 
265
+ demo.launch()