Spaces:
Sleeping
Sleeping
Update mcqgen.py
Browse files
mcqgen.py
CHANGED
|
@@ -6,7 +6,7 @@ from langchain.chains import LLMChain, SequentialChain
|
|
| 6 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
| 7 |
|
| 8 |
# Load the JSON file
|
| 9 |
-
with open('
|
| 10 |
RESPONSE_JSON = json.load(file)
|
| 11 |
|
| 12 |
TEMPLATE = """
|
|
|
|
| 6 |
from transformers import GPT2LMHeadModel, GPT2Tokenizer
|
| 7 |
|
| 8 |
# Load the JSON file
|
| 9 |
+
with open('response.json', 'r', encoding="utf-8") as file:
|
| 10 |
RESPONSE_JSON = json.load(file)
|
| 11 |
|
| 12 |
TEMPLATE = """
|