jaradat commited on
Commit
5ab8f2c
·
1 Parent(s): 7006aeb

Update pidray-semantics.py

Browse files
Files changed (1) hide show
  1. pidray-semantics.py +0 -19
pidray-semantics.py CHANGED
@@ -1,21 +1,3 @@
1
- # coding=utf-8
2
- # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- # Lint as: python3
17
-
18
-
19
  import json
20
 
21
  import datasets
@@ -69,7 +51,6 @@ class PIDrayTargz(datasets.GeneratorBasedBuilder):
69
  # iterate through images
70
  for filepath, image in images:
71
 
72
- text = filepath.split
73
  yield idx, {
74
  "image": {"filepath": filepath, "image": image.read()},
75
  "text": descriptions[idx],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import json
2
 
3
  import datasets
 
51
  # iterate through images
52
  for filepath, image in images:
53
 
 
54
  yield idx, {
55
  "image": {"filepath": filepath, "image": image.read()},
56
  "text": descriptions[idx],