Spaces:
Running
Running
Commit
•
a57e1e5
1
Parent(s):
f91382f
Update main.py
Browse files
main.py
CHANGED
@@ -108,6 +108,8 @@ async def process_data(data: DataInput):
|
|
108 |
# Load required models and components from Langchain library
|
109 |
# os.environ['HUGGINGFACEHUB_API_TOKEN'] =HUGGINGFACEHUB_API_TOKEN
|
110 |
# HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
|
|
|
|
111 |
dom = [LangchainDocument(page_content=response_data, metadata={"source": "local"})]
|
112 |
|
113 |
text_spliter = CharacterTextSplitter(chunk_size=3000, chunk_overlap=0)
|
|
|
108 |
# Load required models and components from Langchain library
|
109 |
# os.environ['HUGGINGFACEHUB_API_TOKEN'] =HUGGINGFACEHUB_API_TOKEN
|
110 |
# HUGGINGFACEHUB_API_TOKEN = os.getenv("HUGGINGFACEHUB_API_TOKEN")
|
111 |
+
os.environ['HUGGINGFACEHUB_API_TOKEN'] = 'your_api_token_here'
|
112 |
+
|
113 |
dom = [LangchainDocument(page_content=response_data, metadata={"source": "local"})]
|
114 |
|
115 |
text_spliter = CharacterTextSplitter(chunk_size=3000, chunk_overlap=0)
|