Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,6 +40,8 @@ t5_model = T5ForConditionalGeneration.from_pretrained("t5-small")
|
|
40 |
# File uploader in the sidebar
|
41 |
file_name = st.sidebar.file_uploader("Upload file:", type=['csv', 'xlsx'])
|
42 |
|
|
|
|
|
43 |
st.markdown("""
|
44 |
<style>
|
45 |
.custom-font {
|
@@ -49,8 +51,7 @@ st.markdown("""
|
|
49 |
</style>
|
50 |
""", unsafe_allow_html=True)
|
51 |
|
52 |
-
|
53 |
-
if file_name is None:
|
54 |
st.markdown('<p class="custom-font">Please click left side bar to upload an excel or csv file </p>', unsafe_allow_html=True)
|
55 |
else:
|
56 |
try:
|
|
|
40 |
# File uploader in the sidebar
|
41 |
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 {
|
|
|
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:
|
57 |
try:
|