Spaces:
Runtime error
Runtime error
Teddy Xinyuan Chen
commited on
2024-05-10T12-12-38Z
Browse files
app.py
CHANGED
@@ -10,9 +10,9 @@ def convert_text(text, system="Tailo", dialect="south", format="mark", sandhi="n
|
|
10 |
# Convert the text using the specified transliteration system
|
11 |
converted_text = converter.get(text)
|
12 |
# Convert to simplified Chinese characters
|
13 |
-
simplified_text = to_simplified(
|
14 |
# Convert to traditional Chinese characters
|
15 |
-
traditional_text = to_traditional(
|
16 |
# Return the tuple containing all conversion results
|
17 |
return converted_text, simplified_text, traditional_text
|
18 |
|
|
|
10 |
# Convert the text using the specified transliteration system
|
11 |
converted_text = converter.get(text)
|
12 |
# Convert to simplified Chinese characters
|
13 |
+
simplified_text = to_simplified(text)
|
14 |
# Convert to traditional Chinese characters
|
15 |
+
traditional_text = to_traditional(text)
|
16 |
# Return the tuple containing all conversion results
|
17 |
return converted_text, simplified_text, traditional_text
|
18 |
|