Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1 +1,13 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|