Spaces:
Sleeping
Sleeping
fix
Browse files
app.py
CHANGED
|
@@ -11,6 +11,7 @@ from langchain_core.documents import Document
|
|
| 11 |
from langchain_core.prompts import ChatPromptTemplate
|
| 12 |
from langchain.text_splitter import CharacterTextSplitter
|
| 13 |
from huggingface_hub import InferenceClient
|
|
|
|
| 14 |
import logging
|
| 15 |
import os
|
| 16 |
|
|
|
|
| 11 |
from langchain_core.prompts import ChatPromptTemplate
|
| 12 |
from langchain.text_splitter import CharacterTextSplitter
|
| 13 |
from huggingface_hub import InferenceClient
|
| 14 |
+
from tenacity import retry, stop_after_attempt, wait_exponential, retry_if_exception_type
|
| 15 |
import logging
|
| 16 |
import os
|
| 17 |
|