-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add web search, retrain routing mlops, preprocessing pdf
- Loading branch information
1 parent
e164ec9
commit 9afcddf
Showing
9 changed files
with
30,284 additions
and
30,092 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
import sys | ||
sys.path.append("") | ||
|
||
import os | ||
from src.utils import config_parser | ||
import pandas as pd | ||
|
||
config = config_parser(data_config_path = 'config/gpt_routing_train_config.yaml') | ||
dataset_name = config['dataset_name'] | ||
local_data_path = config['local_data_path'] | ||
|
||
file_name = os.path.basename(local_data_path).split(".")[0] | ||
df = pd.read_excel(local_data_path) | ||
|
||
print(df.head(10)) | ||
try: | ||
df.to_csv(f"hf://datasets/{dataset_name}/train.csv", index=False) | ||
print(f"Done pushing data to {dataset_name}") | ||
except Exception as e: | ||
print(f"Error pushing data to {dataset_name}: {e}") |
Oops, something went wrong.