Bajiyo commited on
Commit
e95e53f
·
verified ·
1 Parent(s): 6a8a035

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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/Malayalam_transliteration"
9
- target_tokenizer_config_path = "Bajiyo/Malayalam_transliteration"
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 = ... # Replace with the actual value
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,