File size: 558 Bytes
7a91df3
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import gradio as gr
import speech_recognition as sr

# دالة التصنيف
def classify_location(item):
    kitchen_items = ["قهوة", "مطبخ", "مقلاة", "ثلاجة", "خلاط"]
    bathroom_items = ["صابون", "منشفة", "فرشاة أسنان", "شامبو", "مرآة"]
    bedroom_items = ["سرير", "وسادة", "لحاف", "خزانة", "منبه"]

    if any(word in item.lower() for word in kitchen_items):
        return "📍 المطبخ"
    elif any(word in item.lower() for word in bathroom_items):
        return "📍