Spaces:
Sleeping
Sleeping
Update mcq_generator.py
Browse files- mcq_generator.py +6 -1
mcq_generator.py
CHANGED
@@ -611,7 +611,12 @@ import numpy as np
|
|
611 |
from nltk.translate.bleu_score import sentence_bleu, SmoothingFunction
|
612 |
from rouge import Rouge
|
613 |
import matplotlib.pyplot as plt
|
614 |
-
|
|
|
|
|
|
|
|
|
|
|
615 |
import pandas as pd
|
616 |
from nltk.tokenize import sent_tokenize
|
617 |
import tracemalloc
|
|
|
611 |
from nltk.translate.bleu_score import sentence_bleu, SmoothingFunction
|
612 |
from rouge import Rouge
|
613 |
import matplotlib.pyplot as plt
|
614 |
+
try:
|
615 |
+
from IPython.display import display
|
616 |
+
except ImportError:
|
617 |
+
# Create a dummy display function for non-notebook environments
|
618 |
+
def display(obj):
|
619 |
+
pass
|
620 |
import pandas as pd
|
621 |
from nltk.tokenize import sent_tokenize
|
622 |
import tracemalloc
|