Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -123,9 +123,9 @@ if st.button("Retrieve your answer"):
|
|
123 |
|
124 |
with st.spinner("Wait for it...", show_time=True):
|
125 |
time.sleep(5)
|
126 |
-
if
|
127 |
tqa = pipeline(task="table-question-answering", model="microsoft/tapex-large-finetuned-wtq")
|
128 |
-
st.write(tqa(table=
|
129 |
|
130 |
st.divider()
|
131 |
st.write(f"Number of questions asked: {st.session_state['question_attempts']}/{max_attempts}")
|
|
|
123 |
|
124 |
with st.spinner("Wait for it...", show_time=True):
|
125 |
time.sleep(5)
|
126 |
+
if df_original is not None:
|
127 |
tqa = pipeline(task="table-question-answering", model="microsoft/tapex-large-finetuned-wtq")
|
128 |
+
st.write(tqa(table=df_original, query=question)['answer'])
|
129 |
|
130 |
st.divider()
|
131 |
st.write(f"Number of questions asked: {st.session_state['question_attempts']}/{max_attempts}")
|