Spaces:
Build error
Build error
BilalSardar
commited on
Commit
•
a664558
1
Parent(s):
4d0a6b9
Update app.py
Browse files
app.py
CHANGED
@@ -247,7 +247,7 @@ output = gr.outputs.HTML( label="Question and Answers")
|
|
247 |
radiobutton = gr.inputs.Radio(["Wordnet", "Gensim"])
|
248 |
|
249 |
def generate_question(context1,radiobutton):
|
250 |
-
|
251 |
|
252 |
f = open("The_audio.txt", "r")
|
253 |
context=f.read()
|
@@ -281,8 +281,8 @@ def generate_question(context1,radiobutton):
|
|
281 |
summary = summary.replace(answer.capitalize(),"<b>"+answer.capitalize()+"</b>")
|
282 |
output = output + "<p>"+summary+"</p>"
|
283 |
return output
|
284 |
-
except:
|
285 |
-
|
286 |
|
287 |
|
288 |
|
|
|
247 |
radiobutton = gr.inputs.Radio(["Wordnet", "Gensim"])
|
248 |
|
249 |
def generate_question(context1,radiobutton):
|
250 |
+
# try:
|
251 |
|
252 |
f = open("The_audio.txt", "r")
|
253 |
context=f.read()
|
|
|
281 |
summary = summary.replace(answer.capitalize(),"<b>"+answer.capitalize()+"</b>")
|
282 |
output = output + "<p>"+summary+"</p>"
|
283 |
return output
|
284 |
+
# except:
|
285 |
+
# return "Something Went Wrong...Please Check Link or try Again"
|
286 |
|
287 |
|
288 |
|