Commit
•
41b224c
1
Parent(s):
d872a02
feat: info about loading and vectorizing
Browse files
app.py
CHANGED
@@ -29,6 +29,7 @@ def get_iframe(hub_repo_id):
|
|
29 |
|
30 |
|
31 |
def load_dataset_from_hub(hub_repo_id):
|
|
|
32 |
global ds
|
33 |
ds = load_dataset(hub_repo_id)
|
34 |
|
@@ -53,6 +54,7 @@ def get_splits():
|
|
53 |
|
54 |
|
55 |
def vectorize_dataset(split: str, column: str):
|
|
|
56 |
global df
|
57 |
global ds
|
58 |
df = ds[split].to_polars()
|
|
|
29 |
|
30 |
|
31 |
def load_dataset_from_hub(hub_repo_id):
|
32 |
+
gr.Info("Loading dataset...")
|
33 |
global ds
|
34 |
ds = load_dataset(hub_repo_id)
|
35 |
|
|
|
54 |
|
55 |
|
56 |
def vectorize_dataset(split: str, column: str):
|
57 |
+
gr.Info("Vectorizing dataset...")
|
58 |
global df
|
59 |
global ds
|
60 |
df = ds[split].to_polars()
|