Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
from gradio import Interface
|
2 |
import json
|
3 |
from tensorflow.keras.models import load_model # Assuming TensorFlow backend
|
4 |
-
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 = "https://huggingface.co/Bajiyo/
|
9 |
-
target_tokenizer_config_path = "https://huggingface.co/Bajiyo/
|
10 |
|
11 |
# Load the model
|
12 |
model = load_model(model_path)
|
|
|
1 |
from gradio import Interface
|
2 |
import json
|
3 |
from tensorflow.keras.models import load_model # Assuming TensorFlow backend
|
4 |
+
#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 = "https://huggingface.co/Bajiyo/Malayalam_transliteration/blob/main/source_tokenizer_config.json"
|
9 |
+
target_tokenizer_config_path = "https://huggingface.co/Bajiyo/Malayalam_transliteration/blob/main/target_tokenizer_config.json"
|
10 |
|
11 |
# Load the model
|
12 |
model = load_model(model_path)
|