Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,10 +19,6 @@ class UnifiedTranslator:
|
|
19 |
|
20 |
# Debugging output
|
21 |
print(f"Input text: {text_lower}")
|
22 |
-
|
23 |
-
# Handle specific case for 'sasa' based on its position in the sentence
|
24 |
-
if text_lower.startswith("sasa"):
|
25 |
-
return self.phrase_mapping.get("Sasa", "Translation not found")
|
26 |
|
27 |
# Check if the text matches any pattern in the phrase_mapping
|
28 |
for pattern, translation in self.phrase_mapping.items():
|
|
|
19 |
|
20 |
# Debugging output
|
21 |
print(f"Input text: {text_lower}")
|
|
|
|
|
|
|
|
|
22 |
|
23 |
# Check if the text matches any pattern in the phrase_mapping
|
24 |
for pattern, translation in self.phrase_mapping.items():
|