Metantropia commited on
Commit
40868ea
·
verified ·
1 Parent(s): 5541556

Labels adding

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -11,6 +11,13 @@ def sepia(input_img):
11
  sepia_img /= sepia_img.max()
12
  return sepia_img
13
 
14
- demo = gr.Interface(sepia, gr.Image(label="Load a picture here"), "image",title = "Sepia Filter")
 
 
 
 
 
 
 
15
  if __name__ == "__main__":
16
  demo.launch()
 
11
  sepia_img /= sepia_img.max()
12
  return sepia_img
13
 
14
+ # Define the Gradio interface with labeled output
15
+ demo = gr.Interface(
16
+ fn=sepia,
17
+ inputs=gr.Image(label="Original Picture"),
18
+ outputs=gr.Image(label="Applied Filter"), # Labeled output
19
+ title="Sepia Filter"
20
+ )
21
+
22
  if __name__ == "__main__":
23
  demo.launch()