Spaces:
Sleeping
Sleeping
updated app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
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(input_img)
|
9 |
return prediction
|
10 |
|
|
|
1 |
import numpy as np
|
2 |
import gradio as gr
|
3 |
from model import api
|
4 |
+
from PIL import Image
|
5 |
sign_api = api()
|
6 |
|
7 |
def sign(input_img):
|
8 |
+
input_img = Image.fromarray(input_img)
|
9 |
prediction = sign_api.predict(input_img)
|
10 |
return prediction
|
11 |
|