Spaces:
Runtime error
Runtime error
ASL ap2p
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import requests
|
|
4 |
from ultralytics import YOLO
|
5 |
|
6 |
model = YOLO('best.pt')
|
7 |
-
path = [
|
8 |
classes = ['ain', 'al', 'aleff','bb','dal','dha','dhad','fa','gaaf','ghain','ha','haa','jeem','kaaf','khaa','la','laam',
|
9 |
'meem','nun','ra','saad','seen','sheen','ta','taa','thaa','thal','toot','waw','ya','yaa','zay']
|
10 |
TargetMapper = dict(zip(range(32),classes))
|
@@ -42,4 +42,4 @@ gr.Interface(
|
|
42 |
title="Arab Sign Language Detection app",
|
43 |
examples=path,
|
44 |
cache_examples=False,
|
45 |
-
).
|
|
|
4 |
from ultralytics import YOLO
|
5 |
|
6 |
model = YOLO('best.pt')
|
7 |
+
path = ['image.jpg']
|
8 |
classes = ['ain', 'al', 'aleff','bb','dal','dha','dhad','fa','gaaf','ghain','ha','haa','jeem','kaaf','khaa','la','laam',
|
9 |
'meem','nun','ra','saad','seen','sheen','ta','taa','thaa','thal','toot','waw','ya','yaa','zay']
|
10 |
TargetMapper = dict(zip(range(32),classes))
|
|
|
42 |
title="Arab Sign Language Detection app",
|
43 |
examples=path,
|
44 |
cache_examples=False,
|
45 |
+
).launch()
|