Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import gradio as gr
|
|
| 6 |
|
| 7 |
from openai import AzureOpenAI
|
| 8 |
|
| 9 |
-
from
|
| 10 |
from langchain_community.vectorstores import Chroma
|
| 11 |
|
| 12 |
from huggingface_hub import CommitScheduler
|
|
@@ -19,7 +19,7 @@ client = AzureOpenAI(
|
|
| 19 |
api_version = "2024-02-01"
|
| 20 |
)
|
| 21 |
|
| 22 |
-
embedding_model =
|
| 23 |
|
| 24 |
tesla_10k_collection = 'tesla-10k-2019-to-2023'
|
| 25 |
|
|
|
|
| 6 |
|
| 7 |
from openai import AzureOpenAI
|
| 8 |
|
| 9 |
+
from langchain_huggingface import HuggingFaceEmbeddings
|
| 10 |
from langchain_community.vectorstores import Chroma
|
| 11 |
|
| 12 |
from huggingface_hub import CommitScheduler
|
|
|
|
| 19 |
api_version = "2024-02-01"
|
| 20 |
)
|
| 21 |
|
| 22 |
+
embedding_model = HuggingFaceEmbeddings(model_name='thenlper/gte-small')
|
| 23 |
|
| 24 |
tesla_10k_collection = 'tesla-10k-2019-to-2023'
|
| 25 |
|