Downloads · 30 days
0
Yahiappp/yahiagpt
yahiagpt is a machine learning model from Yahiappp. 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 apache-2.0.
Downloads · 30 days
0
Access
Public
Updated Nov 13, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 66%
From the Hugging Face model README
from transformers import pipeline
chatbot = pipeline("text-generation", model="gpt2")
print("🤖 Smart ChatGPT جاهز! (اكتب 'خروج' للخروج)\n")
while True: user_input = input("أنت: ") if user_input.lower() == "خروج": print("🤖: باي 👋") break
# توليد الرد
response = chatbot(user_input, max_length=80, num_return_sequences=1)
reply = response[0]['generated_text']
# نطبع فقط الجزء بعد الإدخال متاعك باش يكون منطقي
print("🤖:", reply.replace(user_input, "").strip())