BillBojangeles2000 commited on
Commit
7d3d3a8
·
1 Parent(s): 500644b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def generate_answer(query):
57
  ids = generator.generate(inputs["input_ids"], num_beams=2, min_length=20, max_length=64)
58
  # use tokenizer to decode the output ids
59
  answer = tokenizer.batch_decode(ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
60
- return pprint(answer)
61
 
62
  query = st.text_area('Enter Question:')
63
  b = st.button('Submit!')
 
57
  ids = generator.generate(inputs["input_ids"], num_beams=2, min_length=20, max_length=64)
58
  # use tokenizer to decode the output ids
59
  answer = tokenizer.batch_decode(ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
60
+ st.write(str(answer))
61
 
62
  query = st.text_area('Enter Question:')
63
  b = st.button('Submit!')