Spaces:
Running
Running
new model
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ except ImportError:
|
|
| 35 |
from langchain.retrievers import ContextualCompressionRetriever
|
| 36 |
from langchain.retrievers.document_compressors import DocumentCompressorPipeline
|
| 37 |
|
| 38 |
-
from pydantic
|
| 39 |
|
| 40 |
# HF Hub for downloading the SavedModel once (image classifier)
|
| 41 |
from huggingface_hub import snapshot_download
|
|
|
|
| 35 |
from langchain.retrievers import ContextualCompressionRetriever
|
| 36 |
from langchain.retrievers.document_compressors import DocumentCompressorPipeline
|
| 37 |
|
| 38 |
+
from pydantic import BaseModel, Field # <-- switched to Pydantic v2
|
| 39 |
|
| 40 |
# HF Hub for downloading the SavedModel once (image classifier)
|
| 41 |
from huggingface_hub import snapshot_download
|