YamaiDP commited on
Commit
9c2315d
·
verified ·
1 Parent(s): 05c9e6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -19,17 +19,18 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
19
  """
20
  return "What magic will you build ?"
21
 
 
22
  @tool
23
  def clean_dataset(file_path: str, output_path: str = "cleaned_data.csv") -> str:
24
  """
25
  Cleans a dataset by handling missing values, dropping duplicates, and standardizing column names.
26
 
27
  Args:
28
- file_path (str): The path to the input dataset (CSV or JSON) to be cleaned.
29
- output_path (str): The path where the cleaned dataset will be saved.
30
 
31
  Returns:
32
- str: A message confirming that the dataset has been cleaned and saved.
33
  """
34
  try:
35
  # Load dataset
@@ -56,6 +57,7 @@ def clean_dataset(file_path: str, output_path: str = "cleaned_data.csv") -> str:
56
 
57
  except Exception as e:
58
  return f"Error cleaning dataset: {str(e)}"
 
59
 
60
  @tool
61
  def get_current_time_in_timezone(timezone: str) -> str:
 
19
  """
20
  return "What magic will you build ?"
21
 
22
+
23
  @tool
24
  def clean_dataset(file_path: str, output_path: str = "cleaned_data.csv") -> str:
25
  """
26
  Cleans a dataset by handling missing values, dropping duplicates, and standardizing column names.
27
 
28
  Args:
29
+ file_path: The path to the input dataset (CSV or JSON) to be cleaned.
30
+ output_path: The path where the cleaned dataset will be saved.
31
 
32
  Returns:
33
+ A message confirming that the dataset has been cleaned and saved.
34
  """
35
  try:
36
  # Load dataset
 
57
 
58
  except Exception as e:
59
  return f"Error cleaning dataset: {str(e)}"
60
+
61
 
62
  @tool
63
  def get_current_time_in_timezone(timezone: str) -> str: