My_AI_SPACE / app.py
Karimkadouche5's picture
Update app.py
f15dbf0 verified
raw
history blame contribute delete
383 Bytes
from huggingface_hub import hf_hub_download
from llama_cpp import Llama
# ุชุญู…ูŠู„ ุงู„ู…ู„ู ู…ู† ู…ุณุชูˆุฏุน Hugging Face ุงู„ุฃุตู„ูŠ
file_path = hf_hub_download(
repo_id="unsloth/gemma-3-1b-it-GGUF",
filename="gemma-3-1b-it-IQ4_NL.gguf"
)
# ุชุดุบูŠู„ ุงู„ู†ู…ูˆุฐุฌ
llm = Llama(model_path=file_path)
response = llm("ุงูƒุชุจ ู„ูŠ ู†ุต ุชุฌุฑูŠุจูŠ")
print(response)