Karimkadouche5 commited on
Commit
f15dbf0
·
verified ·
1 Parent(s): 6e54897

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -1 +1,13 @@
1
- curl -L -o gemma-3-1b-it-IQ4_NL.gguf "https://huggingface.co/unsloth/gemma-3-1b-it-GGUF/resolve/main/gemma-3-1b-it-IQ4_NL.gguf?download=true"
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import hf_hub_download
2
+ from llama_cpp import Llama
3
+
4
+ # تحميل الملف من مستودع Hugging Face الأصلي
5
+ file_path = hf_hub_download(
6
+ repo_id="unsloth/gemma-3-1b-it-GGUF",
7
+ filename="gemma-3-1b-it-IQ4_NL.gguf"
8
+ )
9
+
10
+ # تشغيل النموذج
11
+ llm = Llama(model_path=file_path)
12
+ response = llm("اكتب لي نص تجريبي")
13
+ print(response)