Spaces:
Sleeping
Sleeping
model uploaded
Browse files
app.py
CHANGED
@@ -1,15 +1,12 @@
|
|
1 |
import numpy as np
|
2 |
import gradio as gr
|
|
|
3 |
|
4 |
-
|
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 |
-
sepia_img = input_img.dot(sepia_filter.T)
|
11 |
-
sepia_img /= sepia_img.max()
|
12 |
-
return "hello"
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
15 |
demo.launch()
|
|
|
1 |
import numpy as np
|
2 |
import gradio as gr
|
3 |
+
from model import api
|
4 |
|
5 |
+
sign_api = api()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
+
def sign(input_img):
|
8 |
+
prediction = sign_api.predict(image)
|
9 |
+
return prediction
|
10 |
+
|
11 |
+
demo = gr.Interface(sign,inputs=gr.Image(shape=(200, 200)), outputs=gr.Label())
|
12 |
demo.launch()
|