BilalSardar commited on
Commit
a77f28c
·
1 Parent(s): f255e59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -271,7 +271,7 @@ def generate_question(context1,radiobutton):
271
  output ="\n"+ output + "<b style='color:green;'>" + "Ans: " +answer.capitalize()+ "</b>"
272
  if len(distractors)>0:
273
  for distractor in distractors[:4]:
274
- output = output + "<b style='color:brown;'>" + distractor+ "</b>\n"
275
  output = output + "<br>"
276
 
277
  summary ="Summary: "+ summary_text
@@ -286,6 +286,6 @@ iface = gr.Interface(
286
  fn=generate_question,
287
  inputs=[context1,radiobutton],
288
  title="VidQuest",
289
- description="Keep in mind that it might take up to 20 to 30 minutes. Correct answers appear in green, while incorrect choices appear in red. Use the Gensim tool to find the most appropriate distractions.",
290
  outputs=output)
291
  iface.launch(debug=True)
 
271
  output ="\n"+ output + "<b style='color:green;'>" + "Ans: " +answer.capitalize()+ "</b>"
272
  if len(distractors)>0:
273
  for distractor in distractors[:4]:
274
+ output = output + " <b style='color:brown;'>" + distractor+ "</b>\n"
275
  output = output + "<br>"
276
 
277
  summary ="Summary: "+ summary_text
 
286
  fn=generate_question,
287
  inputs=[context1,radiobutton],
288
  title="VidQuest",
289
+ description="Keep in mind that it might take some minutes. Correct answers appear in green, while incorrect choices appear in red. Use the Gensim tool to find the most appropriate distractions.",
290
  outputs=output)
291
  iface.launch(debug=True)