Carlosito16 commited on
Commit
da7f1f3
1 Parent(s): 66f27da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -91,9 +91,9 @@ def retrieve_document(query_input):
91
  def retrieve_answer(query_input):
92
  prompt_answer= query_input + " " + "Try to elaborate as much as you can."
93
  answer = qa_retriever.run(prompt_answer)
94
- output = st.text_area(label="Retrieved documents", value=answer[6:]) #this positional slicing helps remove "<pad> " at the beginning
95
 
96
- st.markdown('---')
97
  # score = st.radio(label = 'please select the rating score for overall satifaction and helpfullness of the bot answer', options=[0, 1,2,3,4,5], horizontal=True,
98
  # on_change=update_worksheet_qa, key='rating')
99
 
@@ -187,7 +187,7 @@ st.write("""
187
  for chat in st.session_state.chat_history:
188
  st_message(**chat)
189
 
190
- query_input = st.text_area(label= 'What would you like to know about AIT?' , key = 'my_text_input')
191
  generate_button = st.button(label = 'Ask question!')
192
 
193
  if generate_button:
 
91
  def retrieve_answer(query_input):
92
  prompt_answer= query_input + " " + "Try to elaborate as much as you can."
93
  answer = qa_retriever.run(prompt_answer)
94
+ # output = st.text_area(label="Retrieved documents", value=answer[6:]) #this positional slicing helps remove "<pad> " at the beginning
95
 
96
+ # st.markdown('---')
97
  # score = st.radio(label = 'please select the rating score for overall satifaction and helpfullness of the bot answer', options=[0, 1,2,3,4,5], horizontal=True,
98
  # on_change=update_worksheet_qa, key='rating')
99
 
 
187
  for chat in st.session_state.chat_history:
188
  st_message(**chat)
189
 
190
+ query_input = st.text_input(label= 'What would you like to know about AIT?' , key = 'my_text_input')
191
  generate_button = st.button(label = 'Ask question!')
192
 
193
  if generate_button: