juancho72h
commited on
Commit
•
b837587
1
Parent(s):
e5e0026
Upload 2 files
Browse files- app.py +2 -2
- requirements.txt +1 -0
app.py
CHANGED
@@ -5,8 +5,8 @@ import gradio as gr
|
|
5 |
import torch
|
6 |
from dotenv import load_dotenv
|
7 |
from pinecone import Pinecone
|
8 |
-
from
|
9 |
-
from
|
10 |
import logging
|
11 |
import re # To help with preprocessing
|
12 |
|
|
|
5 |
import torch
|
6 |
from dotenv import load_dotenv
|
7 |
from pinecone import Pinecone
|
8 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings # Updated import
|
9 |
+
from rapidfuzz import fuzz # Replaced fuzzywuzzy with rapidfuzz
|
10 |
import logging
|
11 |
import re # To help with preprocessing
|
12 |
|
requirements.txt
CHANGED
@@ -30,6 +30,7 @@ tenacity==8.5.0
|
|
30 |
requests==2.32.3
|
31 |
torch==2.4.0
|
32 |
pandas
|
|
|
33 |
|
34 |
# Dependency for Pinecone plugin inference
|
35 |
pinecone-plugin-inference==1.1.0
|
|
|
30 |
requests==2.32.3
|
31 |
torch==2.4.0
|
32 |
pandas
|
33 |
+
rapidfuzz
|
34 |
|
35 |
# Dependency for Pinecone plugin inference
|
36 |
pinecone-plugin-inference==1.1.0
|