m7mdal7aj commited on
Commit
08fe92d
1 Parent(s): 518eb6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -92,6 +92,7 @@ def image_qa_app(kbvqa):
92
  st.session_state['answer_in_progress'] = True
93
  answer = answer_question(st.session_state['processed_image'], question, model=kbvqa)
94
  st.session_state['qa_history'].append((question, answer))
 
95
 
96
  # Display all Q&A
97
  for q, a in st.session_state['qa_history']:
 
92
  st.session_state['answer_in_progress'] = True
93
  answer = answer_question(st.session_state['processed_image'], question, model=kbvqa)
94
  st.session_state['qa_history'].append((question, answer))
95
+ st.session_state['question'] = ''
96
 
97
  # Display all Q&A
98
  for q, a in st.session_state['qa_history']: