Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def util(NumQues,Input):
|
|
| 31 |
|
| 32 |
#Question generation
|
| 33 |
generatedQuestions = []
|
| 34 |
-
Question_Generator=joblib.load("
|
| 35 |
|
| 36 |
for part in context:
|
| 37 |
question = Question_Generator.generate_q(list_context=part, list_answer="")
|
|
@@ -39,7 +39,7 @@ def util(NumQues,Input):
|
|
| 39 |
|
| 40 |
|
| 41 |
#Answer Generation
|
| 42 |
-
load_pipeline=joblib.load('
|
| 43 |
|
| 44 |
generatedAnswers=[]
|
| 45 |
for Q in generatedQuestions:
|
|
|
|
| 31 |
|
| 32 |
#Question generation
|
| 33 |
generatedQuestions = []
|
| 34 |
+
Question_Generator=joblib.load("Qgenerator.sav")
|
| 35 |
|
| 36 |
for part in context:
|
| 37 |
question = Question_Generator.generate_q(list_context=part, list_answer="")
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
#Answer Generation
|
| 42 |
+
load_pipeline=joblib.load('Agenerator.sav')
|
| 43 |
|
| 44 |
generatedAnswers=[]
|
| 45 |
for Q in generatedQuestions:
|