Spaces:
Runtime error
Runtime error
Labels adding
Browse files
app.py
CHANGED
@@ -11,6 +11,13 @@ def sepia(input_img):
|
|
11 |
sepia_img /= sepia_img.max()
|
12 |
return sepia_img
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|