Spaces:
Runtime error
Runtime error
kmkarakaya
commited on
Commit
•
ee19423
1
Parent(s):
04197f4
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,8 @@ def custom_standardization(input_string):
|
|
30 |
no_U = tf.strings.regex_replace(no_G, "ü","u")
|
31 |
|
32 |
return no_U
|
33 |
-
loaded_end_to_end_model = tf.keras.models.load_model(
|
34 |
-
pkl_file = open(
|
35 |
id_to_category = pickle.load(pkl_file)
|
36 |
|
37 |
def classify (text):
|
|
|
30 |
no_U = tf.strings.regex_replace(no_G, "ü","u")
|
31 |
|
32 |
return no_U
|
33 |
+
loaded_end_to_end_model = tf.keras.models.load_model("end_to_end_model")
|
34 |
+
pkl_file = open("id_to_category.pkl", "rb")
|
35 |
id_to_category = pickle.load(pkl_file)
|
36 |
|
37 |
def classify (text):
|