Downloads · 30 days
0
albrbar/medisecreter
medisecreter is a machine learning model from albrbar. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as bigscience-openrail-m.
import pandas as pd from transformers import pipeline
Downloads · 30 days
0
Access
Public
Updated Aug 6, 2026
Repo size
—
Likes
1
Public
Click a slice to open those files.
Other1.5 KB · 51%
From the Hugging Face model README
import pandas as pd from transformers import pipeline
data = { "المريض": ["محمد علي", "فاطمة أحمد", "خالد عبدالله"], "المصحة": ["مصحة الشفاء", "مصحة الأمل", "مصحة الشفاء"], "الموعد": ["غداً 9:00 صباحاً", "اليوم 2:00 ظهراً", "بعد غد 11:00 صباحاً"], "الحالة": ["متابعة بعد العملية", "فحص دوري", "استشارة جديدة"] } df = pd.DataFrame(data)
schedule_text = df.to_string(index=False)
print("جاري تشغيل سكرتير المصحات...") assistant = pipeline("text-generation", model="meta-llama/Meta-Llama-3-8B-Instruct")
prompt = f""" أنت سكرتير طبي ذكي ومحترف. بناءً على جدول المصحات والحالات التالي: {schedule_text}
الرجاء الإجابة على هذا السؤال بوضوح واختصار: ما هي الحالات الموجودة اليوم في "مصحة الأمل"؟ """
response = assistant(prompt, max_length=200) print(response[0]['generated_text'])