kanishka207004 commited on
Commit
f9b59e2
·
1 Parent(s): 68caa28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -12
app.py CHANGED
@@ -1,13 +1,6 @@
1
  import gradio as gr
2
- import numpy as np
3
-
4
- def sepia(input_img):
5
- sepia_filter = np.array([[.393, .769, .189],
6
- [.349, .686, .168],
7
- [.272, .534, .131]])
8
- sepia_img = input_img.dot(sepia_filter.T)
9
- sepia_img /= sepia_img.max()
10
- return sepia_img
11
-
12
- iface = gr.Interface(sepia, gr.inputs.Image(shape = (100,100)),"image" )
13
- iface.launch()
 
1
  import gradio as gr
2
+ def Hello_World(name):
3
+ return "Hello..." + name + "!!!!"
4
+ Hello_World("little coder")
5
+ interface = gr.Interface(fn = Hello_World, inputs = 'text',outputs = "text")
6
+ interface.launch('share = true')