Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
3 |
import json
|
4 |
|
5 |
# Load the phrase mapping from the JSON file
|
6 |
-
with open('
|
7 |
phrase_mapping = json.load(f)
|
8 |
|
9 |
# Define the UnifiedTranslator class
|
|
|
3 |
import json
|
4 |
|
5 |
# Load the phrase mapping from the JSON file
|
6 |
+
with open('phrase_mappings.json', 'r') as f:
|
7 |
phrase_mapping = json.load(f)
|
8 |
|
9 |
# Define the UnifiedTranslator class
|