Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,13 +32,13 @@ from huggingface_hub import hf_hub_download
|
|
32 |
import zipfile
|
33 |
# Define your repository and file path
|
34 |
repo_id = "kgauvin603/rag-10k"
|
35 |
-
file_path = "dataset.zip"
|
36 |
|
37 |
# Download the file
|
38 |
-
downloaded_file = hf_hub_download(repo_id, file_path)
|
39 |
|
40 |
# Print the path to the downloaded file
|
41 |
-
print(f"Downloaded file is located at: {downloaded_file}")
|
42 |
|
43 |
from langchain_community.embeddings.sentence_transformer import (
|
44 |
SentenceTransformerEmbeddings
|
@@ -91,7 +91,7 @@ import requests
|
|
91 |
# Provide pdf_folder_location
|
92 |
|
93 |
repo_id = "kgauvin603/rag-10k"
|
94 |
-
file_path = "dataset
|
95 |
# Get the URL for the file in the repository
|
96 |
file_url = f"https://huggingface.co/{repo_id}/resolve/main/{file_path}"
|
97 |
|
|
|
32 |
import zipfile
|
33 |
# Define your repository and file path
|
34 |
repo_id = "kgauvin603/rag-10k"
|
35 |
+
#file_path = "dataset.zip"
|
36 |
|
37 |
# Download the file
|
38 |
+
#downloaded_file = hf_hub_download(repo_id, file_path)
|
39 |
|
40 |
# Print the path to the downloaded file
|
41 |
+
#print(f"Downloaded file is located at: {downloaded_file}")
|
42 |
|
43 |
from langchain_community.embeddings.sentence_transformer import (
|
44 |
SentenceTransformerEmbeddings
|
|
|
91 |
# Provide pdf_folder_location
|
92 |
|
93 |
repo_id = "kgauvin603/rag-10k"
|
94 |
+
file_path = "dataset"
|
95 |
# Get the URL for the file in the repository
|
96 |
file_url = f"https://huggingface.co/{repo_id}/resolve/main/{file_path}"
|
97 |
|