Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
Cybonto committed Dec 11, 2024
1 parent 78c4666 commit 2b3a002
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions streamlit_app/app/schema_extractor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ def backup_file(file, backup_dir='schema_extractor/backups'):
f.write(file.getbuffer())
return backup_path

def backup_data(data: Any) -> Any:
def backup_data(data):
"""
Creates a backup of the data.
Args:
data (any): The data to backup.
data: The data to backup.
Returns:
any: A copy of the data.
A copy of the data.
"""
import copy
return copy.deepcopy(data)
Expand Down Expand Up @@ -269,7 +269,7 @@ def customize_json_schema(schema):
schema['required'] = required_fields if required_fields else None
return schema

def load_tabular_file(content: Any, file_name: str) -> pd.DataFrame:
def load_tabular_file(content, file_name: str) -> pd.DataFrame:
"""
Loads a tabular file into a pandas DataFrame.
Expand Down
4 changes: 4 additions & 0 deletions streamlit_app/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ python-Levenshtein # for Entity Bridge
fuzzywuzzy # for Entity Bridge
seaborn
matplotlib
pandera
genson
streamlit_pandas_profiling
nltk

# Add other necessary packages
# the packages should be identical to those for jupyter_lab

0 comments on commit 2b3a002

Please sign in to comment.