AbdulElahGwaith commited on
Commit
4c32430
·
verified ·
1 Parent(s): debb5e3

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +29 -0
README.md CHANGED
@@ -358,3 +358,32 @@ export function ProductDescriptionGenerator({ productId, initialDescription }) {
358
  [1] Hugging Face Inference API. [https://huggingface.co/docs/api-inference/index](https://huggingface.co/docs/api-inference/index)
359
  [2] Shopify Hydrogen. [https://shopify.dev/custom-storefronts/hydrogen](https://shopify.dev/custom-storefronts/hydrogen)
360
  [3] `openai/gpt-oss-120b` model. [https://huggingface.co/openai/gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
358
  [1] Hugging Face Inference API. [https://huggingface.co/docs/api-inference/index](https://huggingface.co/docs/api-inference/index)
359
  [2] Shopify Hydrogen. [https://shopify.dev/custom-storefronts/hydrogen](https://shopify.dev/custom-storefronts/hydrogen)
360
  [3] `openai/gpt-oss-120b` model. [https://huggingface.co/openai/gpt-oss-120b](https://huggingface.co/openai/gpt-oss-120b)
361
+
362
+
363
+ ---
364
+
365
+ ## تطبيق تجريبي: توليد أوصاف المنتجات باستخدام GPT-OSS-120B
366
+
367
+ لإظهار قوة نموذج `gpt-oss-120b` بشكل عملي، قمنا بإضافة تطبيق تجريبي (`demo-gpt-oss.js`) إلى هذا المستودع. يوضح هذا الكود كيفية استدعاء النموذج عبر Node.js لتوليد أوصاف منتجات جذابة ومفصلة لمتاجر Shopify Hydrogen.
368
+
369
+ ### كيفية الاستخدام
370
+
371
+ 1. **تثبيت الاعتماديات:**
372
+ ```bash
373
+ npm install axios
374
+ ```
375
+ 2. **إعداد مفتاح الوصول:**
376
+ تأكد من تعيين مفتاح الوصول الخاص بك على Hugging Face كمتغير بيئة:
377
+ ```bash
378
+ export HF_TOKEN="hf_..."
379
+ ```
380
+ 3. **تشغيل التطبيق التجريبي:**
381
+ ```bash
382
+ node demo-gpt-oss.js
383
+ ```
384
+
385
+ سيقوم الكود بتوليد وصف لمنتج "فستان سهرة حريري فاخر" باستخدام النموذج، ويمكنك تعديل الكود لتجربة منتجات وكلمات مفتاحية مختلفة.
386
+
387
+ ### الكود المصدري
388
+
389
+ يمكنك الاطلاع على الكود الكامل في ملف `demo-gpt-oss.js` في هذا المستودع.