Spaces:
Sleeping
Sleeping
Added get photos
Browse files
utils.py
CHANGED
|
@@ -42,6 +42,10 @@ class Test:
|
|
| 42 |
image_path = f"images/{idx}.jpg"
|
| 43 |
return image_path
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
def convert_to_answer_ids(self, responces):
|
| 46 |
answer_ids = []
|
| 47 |
for idx, responce in enumerate(responces):
|
|
|
|
| 42 |
image_path = f"images/{idx}.jpg"
|
| 43 |
return image_path
|
| 44 |
|
| 45 |
+
def get_photos_path(self, idx):
|
| 46 |
+
image_path = f"photos/{idx}.jpg"
|
| 47 |
+
return image_path
|
| 48 |
+
|
| 49 |
def convert_to_answer_ids(self, responces):
|
| 50 |
answer_ids = []
|
| 51 |
for idx, responce in enumerate(responces):
|