vinayakdev commited on
Commit
54db8a6
1 Parent(s): 5968428

Happy Hugging Face!

Browse files
Files changed (1) hide show
  1. generator.py +1 -1
generator.py CHANGED
@@ -85,7 +85,7 @@ def QA(question, context):
85
  predict_answer_tokens = inputs.input_ids[0, start : end + 1]
86
  output = tokenizer.decode(predict_answer_tokens, skip_special_tokens=True)
87
  output = string.capwords(output)
88
- print(f"Q. {question} \n Ans. {output}")
89
  # QA("What was the first C program","The first prgram written in C was Hello World")
90
 
91
  def gen_question(inputs):
 
85
  predict_answer_tokens = inputs.input_ids[0, start : end + 1]
86
  output = tokenizer.decode(predict_answer_tokens, skip_special_tokens=True)
87
  output = string.capwords(output)
88
+ return f"Q. {question} \n Ans. {output}"
89
  # QA("What was the first C program","The first prgram written in C was Hello World")
90
 
91
  def gen_question(inputs):