JimmyK300 commited on
Commit
12a5ccc
·
verified ·
1 Parent(s): 7681b17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,5 +1,9 @@
1
  import gradio as gr
2
  from llama_cpp import Llama
 
 
 
 
3
 
4
  # Load the Qwen GGUF model
5
  MODEL_PATH = "./qwen2.5-0.5b-instruct-q2_k.gguf" # Ensure the file exists in this path
 
1
  import gradio as gr
2
  from llama_cpp import Llama
3
+ import os
4
+
5
+ os.system("npm install -U huggingface_hub")
6
+ os.system("huggingface-cli download Qwen/Qwen2.5-0.5B-Instruct-GGUF qwen2.5-0.5b-instruct-q2_k.gguf --local-dir . --local-dir-use-symlinks False")
7
 
8
  # Load the Qwen GGUF model
9
  MODEL_PATH = "./qwen2.5-0.5b-instruct-q2_k.gguf" # Ensure the file exists in this path