Spaces:
Runtime error
Runtime error
Prashant Shukla commited on
Commit ·
a643efa
1
Parent(s): 581f828
Updated app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import numpy as np
|
|
| 3 |
import logging, pickle,os
|
| 4 |
import faiss
|
| 5 |
import gradio as gr
|
| 6 |
-
INDEX_PATH = r"
|
| 7 |
-
DOCUMENT_PATH = r"
|
| 8 |
MODEL_NAME = 'all-MiniLM-L6-v2'
|
| 9 |
TOP_K_DEFAULT = 1
|
| 10 |
model = SentenceTransformer(MODEL_NAME)
|
|
|
|
| 3 |
import logging, pickle,os
|
| 4 |
import faiss
|
| 5 |
import gradio as gr
|
| 6 |
+
INDEX_PATH = r"data/faiss_index.idx"
|
| 7 |
+
DOCUMENT_PATH = r"data/faiss_documents.pk1"
|
| 8 |
MODEL_NAME = 'all-MiniLM-L6-v2'
|
| 9 |
TOP_K_DEFAULT = 1
|
| 10 |
model = SentenceTransformer(MODEL_NAME)
|