se modifica el path de lectura
Browse files
app.py
CHANGED
|
@@ -41,10 +41,7 @@ def initialize_huggingface():
|
|
| 41 |
def load_model_and_data():
|
| 42 |
print("Loading everything...")
|
| 43 |
dataset = load_dataset("CHSTR/ecommerce")
|
| 44 |
-
|
| 45 |
-
print("filename: ", dataset['validation']['image'][0].filename)
|
| 46 |
-
path_images = "/".join(dataset['validation']
|
| 47 |
-
['image'][0].filename.split("/")[:-3]) + "/"
|
| 48 |
|
| 49 |
# Download model
|
| 50 |
path_model = hf_hub_download(
|
|
|
|
| 41 |
def load_model_and_data():
|
| 42 |
print("Loading everything...")
|
| 43 |
dataset = load_dataset("CHSTR/ecommerce")
|
| 44 |
+
path_images = "./data/" + "" #"/".join(dataset['validation']['image'][0].filename.split("/")[:-3]) + "/"
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
# Download model
|
| 47 |
path_model = hf_hub_download(
|