naveenvenkatesh commited on
Commit
43df042
1 Parent(s): 01c929e

Update summary_extractor.py

Browse files
Files changed (1) hide show
  1. summary_extractor.py +2 -0
summary_extractor.py CHANGED
@@ -3,6 +3,7 @@ import json
3
  from typing import Dict
4
  import os
5
  from typing import List
 
6
  from langchain_openai import AzureChatOpenAI
7
  from langchain.chains.mapreduce import MapReduceChain
8
  from langchain.text_splitter import CharacterTextSplitter
@@ -10,6 +11,7 @@ from langchain.chains.summarize import load_summarize_chain
10
  from langchain.prompts import PromptTemplate
11
  from langchain_community.document_loaders import UnstructuredFileLoader
12
 
 
13
  class Extractor:
14
 
15
  """
 
3
  from typing import Dict
4
  import os
5
  from typing import List
6
+ os.system("pip install langchain-openai")
7
  from langchain_openai import AzureChatOpenAI
8
  from langchain.chains.mapreduce import MapReduceChain
9
  from langchain.text_splitter import CharacterTextSplitter
 
11
  from langchain.prompts import PromptTemplate
12
  from langchain_community.document_loaders import UnstructuredFileLoader
13
 
14
+
15
  class Extractor:
16
 
17
  """