Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ def convert_df_to_csv(df):
|
|
7 |
return df.to_csv().encode('utf-8')
|
8 |
|
9 |
st.title('Merge Dataframes using LinkTransformer')
|
|
|
10 |
|
11 |
# Function to load DataFrame
|
12 |
def load_dataframe(upload):
|
@@ -38,7 +39,8 @@ if df2 is not None:
|
|
38 |
|
39 |
|
40 |
# Model selection
|
41 |
-
model_path = st.text_input("Model path (HuggingFace
|
|
|
42 |
##More on model selection available on https://linktransformer.github.io/
|
43 |
|
44 |
if df1_upload is not None and df2_upload is not None:
|
@@ -71,5 +73,6 @@ else:
|
|
71 |
st.write("Please upload or enter paths for both DataFrames.")
|
72 |
|
73 |
##Add website and citation
|
|
|
74 |
st.write("For more information and advanced usage, please visit the [LinkTransformer website](https://linktransformer.github.io/).")
|
75 |
st.write("If you use LinkTransformer in your research, please cite the following paper: [LinkTransformer: A Unified Package for Record Linkage with Transformer Language Models](https://arxiv.org/abs/2309.00789)")
|
|
|
7 |
return df.to_csv().encode('utf-8')
|
8 |
|
9 |
st.title('Merge Dataframes using LinkTransformer')
|
10 |
+
st.write('LinkTransformer supports several AI-powered data wrangling operations - here is an example that allows you to use LLMs to merge data.')
|
11 |
|
12 |
# Function to load DataFrame
|
13 |
def load_dataframe(upload):
|
|
|
39 |
|
40 |
|
41 |
# Model selection
|
42 |
+
model_path = st.text_input("Model path (HuggingFace)", value="all-MiniLM-L6-v2")
|
43 |
+
st_write("We have trained several record linkage models! Just copy the Hugging Face model path from the [model zoo](https://linktransformer.github.io/).")
|
44 |
##More on model selection available on https://linktransformer.github.io/
|
45 |
|
46 |
if df1_upload is not None and df2_upload is not None:
|
|
|
73 |
st.write("Please upload or enter paths for both DataFrames.")
|
74 |
|
75 |
##Add website and citation
|
76 |
+
st.write("Note that this space only supports CPU usage and is only recommended on small datasets. If you have access to the GPU, check out our python [package](https://github.com/dell-research-harvard/linktransformer/)!")
|
77 |
st.write("For more information and advanced usage, please visit the [LinkTransformer website](https://linktransformer.github.io/).")
|
78 |
st.write("If you use LinkTransformer in your research, please cite the following paper: [LinkTransformer: A Unified Package for Record Linkage with Transformer Language Models](https://arxiv.org/abs/2309.00789)")
|