Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,10 @@ pipe = pipe.to(device)
|
|
17 |
# Carregando o dataset do Hugging Face
|
18 |
dataset = load_dataset("LEIDIA/Data_Womleimg", split="train")# Carrega o dataset de imagens
|
19 |
|
|
|
|
|
|
|
|
|
20 |
# Acessando as descrições
|
21 |
for example in dataset:
|
22 |
image_id = example["image"].filename
|
|
|
17 |
# Carregando o dataset do Hugging Face
|
18 |
dataset = load_dataset("LEIDIA/Data_Womleimg", split="train")# Carrega o dataset de imagens
|
19 |
|
20 |
+
# Carregando o arquivo JSON
|
21 |
+
with open('Wom_dataset', 'r') as f:
|
22 |
+
Wom_dataset_json = json.load(f)
|
23 |
+
|
24 |
# Acessando as descrições
|
25 |
for example in dataset:
|
26 |
image_id = example["image"].filename
|