Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ tqa = pipeline(task="table-question-answering",
|
|
7 |
|
8 |
st.title("Table Question Answering using TAPAS")
|
9 |
|
10 |
-
st.markdown("<p style='font-family:sans-serif;font-size: 0.9rem;'>Pre-trained TAPAS model runs on max 64 rows and 32 columns data. Make sure
|
11 |
|
12 |
file_name = st.file_uploader("Upload dataset",type=['csv','xlsx'])
|
13 |
|
@@ -22,4 +22,8 @@ if file_name is not None:
|
|
22 |
with st.spinner():
|
23 |
if(st.button('Answer')):
|
24 |
answer = tqa(table=df, query=question,truncation=True)
|
|
|
25 |
st.success(answer)
|
|
|
|
|
|
|
|
7 |
|
8 |
st.title("Table Question Answering using TAPAS")
|
9 |
|
10 |
+
st.markdown("<p style='font-family:sans-serif;font-size: 0.9rem;'>Pre-trained TAPAS model runs on max 64 rows and 32 columns data. Make sure the file data doesn't exceed these dimensions.</p>", unsafe_allow_html=True)
|
11 |
|
12 |
file_name = st.file_uploader("Upload dataset",type=['csv','xlsx'])
|
13 |
|
|
|
22 |
with st.spinner():
|
23 |
if(st.button('Answer')):
|
24 |
answer = tqa(table=df, query=question,truncation=True)
|
25 |
+
st.markdown("<p style='font-family:sans-serif;font-size: 0.5rem;'> Results </p>",unsafe_allow_html = True)
|
26 |
st.success(answer)
|
27 |
+
|
28 |
+
st.markdown("<p style='font-family:sans-serif;font-size: 0.5rem;'> Data </p>",unsafe_allow_html = True)
|
29 |
+
st.table(df)
|