Spaces:
Build error
Build error
Update pages/2_Twitter_GPT_Search.py
Browse files
pages/2_Twitter_GPT_Search.py
CHANGED
|
@@ -68,13 +68,13 @@ try:
|
|
| 68 |
|
| 69 |
if search_input:
|
| 70 |
|
| 71 |
-
|
| 72 |
|
| 73 |
with st.spinner(
|
| 74 |
-
text=f"Loading {
|
| 75 |
):
|
| 76 |
|
| 77 |
-
tweets = process_tweets(file,
|
| 78 |
|
| 79 |
|
| 80 |
references = [doc.page_content for doc in tweets['source_documents']]
|
|
|
|
| 68 |
|
| 69 |
if search_input:
|
| 70 |
|
| 71 |
+
model = bi_enc_dict[sbert_model_name]
|
| 72 |
|
| 73 |
with st.spinner(
|
| 74 |
+
text=f"Loading {model} embedding model and Generating Response..."
|
| 75 |
):
|
| 76 |
|
| 77 |
+
tweets = process_tweets(file,model,search_input)
|
| 78 |
|
| 79 |
|
| 80 |
references = [doc.page_content for doc in tweets['source_documents']]
|