nateraw commited on
Commit
cb95928
·
1 Parent(s): bc4795d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,4 +1,6 @@
1
  import numpy as np
 
 
2
 
3
  def sepia(image):
4
  sepia_filter = np.array(
@@ -8,4 +10,8 @@ def sepia(image):
8
  )
9
  sepia_img = image.dot(sepia_filter.T)
10
  sepia_img /= sepia_img.max()
11
- return sepia_img
 
 
 
 
 
1
  import numpy as np
2
+ import gradio as gr
3
+
4
 
5
  def sepia(image):
6
  sepia_filter = np.array(
 
10
  )
11
  sepia_img = image.dot(sepia_filter.T)
12
  sepia_img /= sepia_img.max()
13
+ return sepia_img
14
+
15
+
16
+ # Write 1 line of Python to create a simple GUI
17
+ gr.Interface(fn=sepia, inputs="image", outputs="image").launch()