Commit ·
0f8b928
1
Parent(s): 7488ccb
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ from llama_cpp import Llama
|
|
| 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):
|
|
@@ -130,7 +130,7 @@ def pdf_to_text(files, output_folder, prompt, maxtokens=2048, temperature=0, top
|
|
| 130 |
|
| 131 |
|
| 132 |
# model_id = "Meta-Llama-3-8B-Instruct.Q8_0.gguf"
|
| 133 |
-
model_id = "Meta-Llama-3-70B-Instruct-IQ3_XXS.gguf"
|
| 134 |
model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)
|
| 135 |
|
| 136 |
css = ".gradio-container {background: 'logo.png'}"
|
|
|
|
| 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 = "./models"
|
| 21 |
)
|
| 22 |
|
| 23 |
def process_document(pdf_path, page_ids=None):
|
|
|
|
| 130 |
|
| 131 |
|
| 132 |
# model_id = "Meta-Llama-3-8B-Instruct.Q8_0.gguf"
|
| 133 |
+
model_id = "models/Meta-Llama-3-70B-Instruct-IQ3_XXS.gguf"
|
| 134 |
model = Llama(model_path=model_id, n_ctx=2048, n_threads=8, n_gpu_layers=-1, n_batch=128)
|
| 135 |
|
| 136 |
css = ".gradio-container {background: 'logo.png'}"
|