Spaces:
Sleeping
Sleeping
rushidarge
commited on
Commit
·
b65b1b9
1
Parent(s):
6d66806
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ import time
|
|
14 |
from sentence_transformers import SentenceTransformer
|
15 |
|
16 |
# Create a Streamlit app
|
17 |
-
st.title("Text Classification and Excel Processing App")
|
18 |
|
19 |
# File upload for Excel file
|
20 |
uploaded_file = st.file_uploader("Upload an Excel file", type=["xlsx"])
|
@@ -24,17 +24,6 @@ import base64
|
|
24 |
from io import BytesIO
|
25 |
|
26 |
def get_binary_file_downloader_link(file_data, file_name, link_text):
|
27 |
-
"""
|
28 |
-
Generates a link to download a file.
|
29 |
-
|
30 |
-
Parameters:
|
31 |
-
- file_data: The data you want to make available for download.
|
32 |
-
- file_name: The name of the file when downloaded.
|
33 |
-
- link_text: The text to display for the download link.
|
34 |
-
|
35 |
-
Returns:
|
36 |
-
- A Streamlit markdown link for downloading the file.
|
37 |
-
"""
|
38 |
# Write the DataFrame to an in-memory Excel file
|
39 |
excel_buffer = BytesIO()
|
40 |
file_data.to_excel(excel_buffer, index=False, engine='xlsxwriter')
|
|
|
14 |
from sentence_transformers import SentenceTransformer
|
15 |
|
16 |
# Create a Streamlit app
|
17 |
+
st.title("Gallagher : Text Classification and Excel Processing App")
|
18 |
|
19 |
# File upload for Excel file
|
20 |
uploaded_file = st.file_uploader("Upload an Excel file", type=["xlsx"])
|
|
|
24 |
from io import BytesIO
|
25 |
|
26 |
def get_binary_file_downloader_link(file_data, file_name, link_text):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
# Write the DataFrame to an in-memory Excel file
|
28 |
excel_buffer = BytesIO()
|
29 |
file_data.to_excel(excel_buffer, index=False, engine='xlsxwriter')
|