Update app.py
Browse files
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']:
|