Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,9 +23,9 @@ style = '''
|
|
23 |
'''
|
24 |
st.markdown(style, unsafe_allow_html=True)
|
25 |
|
26 |
-
st.markdown('<p style="font-family:sans-serif;font-size: 1.
|
27 |
-
st.markdown('<p style="font-family:sans-serif;font-size: 1.
|
28 |
-
st.markdown("<p style='font-family:sans-serif;font-size: 1.
|
29 |
|
30 |
|
31 |
# Initialize TAPAS pipeline
|
@@ -42,15 +42,6 @@ file_name = st.sidebar.file_uploader("Upload file:", type=['csv', 'xlsx'])
|
|
42 |
|
43 |
# File processing and question answering
|
44 |
if file_name is None:
|
45 |
-
st.markdown("""
|
46 |
-
<style>
|
47 |
-
.custom-font {
|
48 |
-
font-family: sans-serif;
|
49 |
-
font-size: 2.5rem;
|
50 |
-
}
|
51 |
-
</style>
|
52 |
-
""", unsafe_allow_html=True)
|
53 |
-
|
54 |
|
55 |
st.markdown('<p class="custom-font">Please click left side bar to upload an excel or csv file </p>', unsafe_allow_html=True)
|
56 |
else:
|
|
|
23 |
'''
|
24 |
st.markdown(style, unsafe_allow_html=True)
|
25 |
|
26 |
+
st.markdown('<p style="font-family:sans-serif;font-size: 1.5rem;text-align: right;"> HertogAI Table Q&A using TAPAS and Model Language</p>', unsafe_allow_html=True)
|
27 |
+
st.markdown('<p style="font-family:sans-serif;font-size: 1.1rem;text-align: right;"> This code is based on Jordan Skinner. I enhanced his work for Data analysis COUNT, AVG, TOTAL, MEAN & StdDev </p>', unsafe_allow_html=True)
|
28 |
+
st.markdown("<p style='font-family:sans-serif;font-size: 1.0rem;text-align: right;'>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)
|
29 |
|
30 |
|
31 |
# Initialize TAPAS pipeline
|
|
|
42 |
|
43 |
# File processing and question answering
|
44 |
if file_name is None:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
st.markdown('<p class="custom-font">Please click left side bar to upload an excel or csv file </p>', unsafe_allow_html=True)
|
47 |
else:
|