srijaydeshpande commited on
Commit
afa36b8
·
1 Parent(s): 7da7880

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -9,16 +9,16 @@ import spaces
9
  import subprocess
10
  from huggingface_hub import hf_hub_download
11
 
12
- hf_hub_download(
13
- repo_id="bartowski/Meta-Llama-3-70B-Instruct-GGUF",
14
- filename="Meta-Llama-3-70B-Instruct-IQ3_XXS.gguf",
15
- local_dir = ""
16
- )
17
 
18
  subprocess.run('pip install llama-cpp-python==0.2.75 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124', shell=True)
19
  subprocess.run('pip install llama-cpp-agent==0.2.10', shell=True)
20
 
21
- from llama_cpp import Llama
 
 
 
 
22
 
23
  def process_document(pdf_path, page_ids=None):
24
  extracted_pages = extract_pages(pdf_path, page_numbers=page_ids)
 
9
  import subprocess
10
  from huggingface_hub import hf_hub_download
11
 
12
+ from llama_cpp import Llama
 
 
 
 
13
 
14
  subprocess.run('pip install llama-cpp-python==0.2.75 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124', shell=True)
15
  subprocess.run('pip install llama-cpp-agent==0.2.10', shell=True)
16
 
17
+ hf_hub_download(
18
+ repo_id="bartowski/Meta-Llama-3-70B-Instruct-GGUF",
19
+ filename="Meta-Llama-3-70B-Instruct-IQ3_XXS.gguf",
20
+ local_dir = "./"
21
+ )
22
 
23
  def process_document(pdf_path, page_ids=None):
24
  extracted_pages = extract_pages(pdf_path, page_numbers=page_ids)