Spaces:
Running
Running
yukti-kash
commited on
Commit
•
c1cc5d8
1
Parent(s):
dc6b619
Update MCQGenerator.py
Browse files- MCQGenerator.py +1 -7
MCQGenerator.py
CHANGED
@@ -4,16 +4,10 @@ import pandas as pd
|
|
4 |
import traceback
|
5 |
import PyPDF2
|
6 |
|
7 |
-
|
8 |
-
from dotenv import load_dotenv
|
9 |
from langchain.chat_models import ChatOpenAI
|
10 |
from langchain import PromptTemplate, LLMChain, OpenAI
|
11 |
from langchain.chains import SequentialChain
|
12 |
-
|
13 |
-
|
14 |
-
# load environment variables as mentioned in .env
|
15 |
-
|
16 |
-
load_dotenv()
|
17 |
|
18 |
# geting envrionment variable like => os.environ
|
19 |
key = os.getenv('OPENAI_API_KEY')
|
|
|
4 |
import traceback
|
5 |
import PyPDF2
|
6 |
|
|
|
|
|
7 |
from langchain.chat_models import ChatOpenAI
|
8 |
from langchain import PromptTemplate, LLMChain, OpenAI
|
9 |
from langchain.chains import SequentialChain
|
10 |
+
|
|
|
|
|
|
|
|
|
11 |
|
12 |
# geting envrionment variable like => os.environ
|
13 |
key = os.getenv('OPENAI_API_KEY')
|