Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,11 +14,11 @@ from langchain.llms import HuggingFaceHub, LlamaCpp
|
|
| 14 |
from huggingface_hub import snapshot_download, hf_hub_download
|
| 15 |
|
| 16 |
|
| 17 |
-
# If you want to use gguf model, uncomment 18-19 and 54-62 lines, comment-out 64-65. Otherwise provide GigaChat Credentials through HF secrets menu
|
| 18 |
#repo_name = "IlyaGusev/saiga_mistral_7b_gguf"
|
| 19 |
#model_name = "model-q4_K.gguf"
|
| 20 |
|
| 21 |
-
snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)
|
| 22 |
|
| 23 |
|
| 24 |
def get_pdf_text(pdf_docs):
|
|
|
|
| 14 |
from huggingface_hub import snapshot_download, hf_hub_download
|
| 15 |
|
| 16 |
|
| 17 |
+
# If you want to use gguf model, uncomment 18-19&21 and 54-62 lines, comment-out 64-65. Otherwise provide GigaChat Credentials through HF secrets menu
|
| 18 |
#repo_name = "IlyaGusev/saiga_mistral_7b_gguf"
|
| 19 |
#model_name = "model-q4_K.gguf"
|
| 20 |
|
| 21 |
+
#snapshot_download(repo_id=repo_name, local_dir=".", allow_patterns=model_name)
|
| 22 |
|
| 23 |
|
| 24 |
def get_pdf_text(pdf_docs):
|