Spaces:
Sleeping
Sleeping
app.py
Browse files
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
# Load your sign language detection model
|
5 |
+
model = pipeline("image-classification", model="RavenOnur/Sign-Language")
|
6 |
+
|
7 |
+
def classify_image(image):
|
8 |
+
results = model(image)
|
9 |
+
return {result['label']: result['score'] for result in results}
|
10 |
+
|
11 |
+
interface = gr.Interface(fn=classify_image, inputs="image", outputs="label")
|
12 |
+
interface.launch()
|