How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="Yemen-JPT/WebProcessor-v1")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Yemen-JPT/WebProcessor-v1")
model = AutoModelForCausalLM.from_pretrained("Yemen-JPT/WebProcessor-v1")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

YemenJPT-WebProcessor-v1

معالج الويب - لاستخراج وتحليل محتوى المواقع

الوصف

معالج الويب - لاستخراج وتحليل محتوى المواقع. هذا النموذج/القاعدة جزء من مجموعة YemenJPT المخصصة لدعم الصحافة الاستقصائية اليمنية.

الروابط

التحميل

# عبر HuggingFace Hub
git lfs clone https://huggingface.co/Yemen-JPT/OSINT-Web

# أو عبر pip (للنماذج)
pip install huggingface-hub
huggingface-cli download Yemen-JPT/OSINT-Web

الترخيص

هذا العمل متاح تحت رخصة Apache 2.0 (للنماذج) أو CC-BY-4.0 (لقواعد البيانات).


YemenJPT — تمكين الصحافة اليمنية بالذكاء الاصطناعي
طُوّر بواسطة RaidanPro بالتعاون مع بيت الصحافة - Press House
الموقع الرسميفيسبوكلينكدإنيوتيوبHuggingFaceOllama
yemenjpt@raidan.pro

YemenJPT-WebProcessor-v1

Web processor for extracting and analyzing website content

Description

Web processor for extracting and analyzing website content. This model/dataset is part of the YemenJPT collection dedicated to supporting Yemeni investigative journalism.

Links

Download

# Via HuggingFace Hub
git lfs clone https://huggingface.co/Yemen-JPT/OSINT-Web

# Or via pip (for models)
pip install huggingface-hub
huggingface-cli download Yemen-JPT/OSINT-Web

License

This work is licensed under Apache 2.0 (for models) or CC-BY-4.0 (for datasets).

Downloads last month
8
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support