Spaces:
Runtime error
Runtime error
Update app.py
#2
by emiliaCarson - opened
app.py
CHANGED
|
@@ -18,7 +18,7 @@ model_standardform = keras.models.load_model("FINALword_guessing.h5")
|
|
| 18 |
|
| 19 |
model_dialect = keras.models.load_model("dialect_guessing.h5")
|
| 20 |
|
| 21 |
-
tokenizer = Tokenizer(
|
| 22 |
|
| 23 |
|
| 24 |
|
|
@@ -46,7 +46,7 @@ def prediction(input_word):
|
|
| 46 |
|
| 47 |
return predicted_word
|
| 48 |
|
| 49 |
-
desc = "
|
| 50 |
|
| 51 |
#def testfunction(input):
|
| 52 |
# output = input.lower()
|
|
|
|
| 18 |
|
| 19 |
model_dialect = keras.models.load_model("dialect_guessing.h5")
|
| 20 |
|
| 21 |
+
tokenizer = Tokenizer()
|
| 22 |
|
| 23 |
|
| 24 |
|
|
|
|
| 46 |
|
| 47 |
return predicted_word
|
| 48 |
|
| 49 |
+
desc = "Have you encountered a Finnish dialect or slang word and you cannot find it in a dictionary? This translator predicts the Finnish standard form of the word to enable you to check those words in your usual Finnish sources! Try it out! But, it needs to be stated that not all predictions will be right, although maybe still helpful..."
|
| 50 |
|
| 51 |
#def testfunction(input):
|
| 52 |
# output = input.lower()
|