Spaces:
Sleeping
Sleeping
FridayMaster
commited on
Commit
•
d702381
1
Parent(s):
929a283
Update app.py
Browse files
app.py
CHANGED
@@ -34,10 +34,10 @@ manual_chunks = chunk_text(full_text, chunk_size=500)
|
|
34 |
index = faiss.read_index("path/to/your/faiss_index.bin")
|
35 |
|
36 |
# Load your embedding model
|
37 |
-
embedding_model = SentenceTransformer('
|
38 |
|
39 |
# OpenAI API key
|
40 |
-
openai.api_key = '
|
41 |
|
42 |
# Function to create embeddings
|
43 |
def embed_text(text_list):
|
|
|
34 |
index = faiss.read_index("path/to/your/faiss_index.bin")
|
35 |
|
36 |
# Load your embedding model
|
37 |
+
embedding_model = SentenceTransformer('FridayMaster/fine_tune_embedding')
|
38 |
|
39 |
# OpenAI API key
|
40 |
+
openai.api_key = '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'
|
41 |
|
42 |
# Function to create embeddings
|
43 |
def embed_text(text_list):
|