Delete app.py
Browse files
app.py
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
import gradio as gr
|
2 |
-
import numpy as np
|
3 |
-
|
4 |
-
def sepia(input_img):
|
5 |
-
sepia_filter = np.array([
|
6 |
-
[0.393, 0.769, 0.189],
|
7 |
-
[0.349, 0.686, 0.168],
|
8 |
-
[0.272, 0.534, 0.131]
|
9 |
-
])
|
10 |
-
|
11 |
-
sepia_img = input_img.dot(sepia_filter.T)
|
12 |
-
sepia_img /= sepia_img.max()
|
13 |
-
print(input_img.shape, sepia_img.shape)
|
14 |
-
return sepia_img
|
15 |
-
|
16 |
-
demo = gr.Interface(sepia,gr.Image(shape=(200,200)),"image")
|
17 |
-
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|