Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ inference_transforms = transforms.Compose([
|
|
24 |
])
|
25 |
|
26 |
# Load the dictionary
|
27 |
-
with open("
|
28 |
dictionary = dict(line.strip().split("\t") for line in file)
|
29 |
|
30 |
# Function to correct words in the caption using the dictionary
|
|
|
24 |
])
|
25 |
|
26 |
# Load the dictionary
|
27 |
+
with open("DICTIONARY (3).txt", "r", encoding="utf-8") as file:
|
28 |
dictionary = dict(line.strip().split("\t") for line in file)
|
29 |
|
30 |
# Function to correct words in the caption using the dictionary
|