Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from keras.preprocessing.text import Tokenizer # Assuming Keras Tokenizer
|
|
5 |
|
6 |
# Model and tokenizer loading paths (replace with your actual paths)
|
7 |
model_path = "Bajiyo/Malayalam_transliteration"
|
8 |
-
source_tokenizer_config_path = "Bajiyo/
|
9 |
-
target_tokenizer_config_path = "Bajiyo/
|
10 |
|
11 |
# Load the model
|
12 |
model = load_model(model_path)
|
@@ -38,7 +38,7 @@ def transliterate(malayalam_name):
|
|
38 |
return transliterated_name
|
39 |
|
40 |
# Define the maximum sequence length your model was trained on
|
41 |
-
MAX_SEQ_LENGTH =
|
42 |
|
43 |
interface = Interface(
|
44 |
fn=transliterate,
|
|
|
5 |
|
6 |
# Model and tokenizer loading paths (replace with your actual paths)
|
7 |
model_path = "Bajiyo/Malayalam_transliteration"
|
8 |
+
source_tokenizer_config_path = "https://huggingface.co/Bajiyo/mal_en_transliteration/blob/main/source_tokenizer_config.json"
|
9 |
+
target_tokenizer_config_path = "https://huggingface.co/Bajiyo/mal_en_transliteration/blob/main/target_tokenizer_config.json"
|
10 |
|
11 |
# Load the model
|
12 |
model = load_model(model_path)
|
|
|
38 |
return transliterated_name
|
39 |
|
40 |
# Define the maximum sequence length your model was trained on
|
41 |
+
MAX_SEQ_LENGTH = 49 # Replace with the actual value
|
42 |
|
43 |
interface = Interface(
|
44 |
fn=transliterate,
|