Added more text to the database and added Unidentified element
Browse files- app.py +2 -0
- output.txt +0 -0
app.py
CHANGED
|
@@ -19,6 +19,8 @@ def read_dict_from_file(filename):
|
|
| 19 |
|
| 20 |
text_output_path = 'output.txt'
|
| 21 |
database, text_list = read_dict_from_file(text_output_path)
|
|
|
|
|
|
|
| 22 |
image_paths = ['images/captured_image.jpg']
|
| 23 |
|
| 24 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 19 |
|
| 20 |
text_output_path = 'output.txt'
|
| 21 |
database, text_list = read_dict_from_file(text_output_path)
|
| 22 |
+
text_list.append("Unidentified")
|
| 23 |
+
database["Unidentified"] = "NA"
|
| 24 |
image_paths = ['images/captured_image.jpg']
|
| 25 |
|
| 26 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
output.txt
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|