signlanguage / app.py
Artificialvira's picture
app.py
8395544 verified
raw
history blame
391 Bytes
import gradio as gr
from transformers import pipeline
# Load your sign language detection model
model = pipeline("image-classification", model="RavenOnur/Sign-Language")
def classify_image(image):
results = model(image)
return {result['label']: result['score'] for result in results}
interface = gr.Interface(fn=classify_image, inputs="image", outputs="label")
interface.launch()