Spaces:
Sleeping
Sleeping
Update chatbot_rag.py
Browse files- chatbot_rag.py +1 -0
chatbot_rag.py
CHANGED
|
@@ -53,6 +53,7 @@ def build_qa():
|
|
| 53 |
torch_dtype="auto", # auto precision
|
| 54 |
trust_remote_code=True # allow custom model code
|
| 55 |
)
|
|
|
|
| 56 |
|
| 57 |
# Create pipeline
|
| 58 |
pipe = pipeline(
|
|
|
|
| 53 |
torch_dtype="auto", # auto precision
|
| 54 |
trust_remote_code=True # allow custom model code
|
| 55 |
)
|
| 56 |
+
model.config.use_cache = False
|
| 57 |
|
| 58 |
# Create pipeline
|
| 59 |
pipe = pipeline(
|