Spaces:
Running
Running
RakanAlsheraiwi
commited on
Commit
•
f0d127a
1
Parent(s):
76b98e2
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from transformers import pipeline
|
|
7 |
|
8 |
# تحميل النموذج
|
9 |
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
|
10 |
-
translator = pipeline("
|
11 |
|
12 |
# دالة لاكتشاف الكائنات في الصور
|
13 |
def detect_and_draw_image(input_image):
|
|
|
7 |
|
8 |
# تحميل النموذج
|
9 |
model = torch.hub.load('ultralytics/yolov5', 'yolov5s')
|
10 |
+
translator = pipeline("translation", model="Helsinki-NLP/opus-mt-tc-big-en-ar")
|
11 |
|
12 |
# دالة لاكتشاف الكائنات في الصور
|
13 |
def detect_and_draw_image(input_image):
|