mariamelia commited on
Commit
b1982e3
·
verified ·
1 Parent(s): 14449aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,6 +1,8 @@
1
- from huggingface_hub import login
2
- import os
3
  from transformers import pipeline
 
 
 
 
4
 
5
  # تسجيل الدخول
6
  login(token=os.environ["HUGGINGFACE_HUB_TOKEN"])
 
 
 
1
  from transformers import pipeline
2
+ generator = pipeline("text-generation", model="mistralai/Mixtral-8x7B-Instruct-v0.1") # هذا مفتوح المصدر
3
+ result = generator("ما هو الذكاء الاصطناعي؟", max_new_tokens=100)
4
+ print(result[0]['generated_text'])
5
+
6
 
7
  # تسجيل الدخول
8
  login(token=os.environ["HUGGINGFACE_HUB_TOKEN"])