Spaces:
Runtime error
Runtime error
fix code
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def create_model():
|
|
22 |
# input_layer = Input(shape=(input_ids.shape[1],))
|
23 |
# embedding_layer = Embedding(max_seq_length+ 1, 200, input_length=max_seq_length)(input_layer)
|
24 |
|
25 |
-
inputs = tf.keras.layers.Input(shape=(
|
26 |
embedding_layer = transformer_model(inputs)[0]
|
27 |
|
28 |
flatten_layer = Flatten()(embedding_layer)
|
|
|
22 |
# input_layer = Input(shape=(input_ids.shape[1],))
|
23 |
# embedding_layer = Embedding(max_seq_length+ 1, 200, input_length=max_seq_length)(input_layer)
|
24 |
|
25 |
+
inputs = tf.keras.layers.Input(shape=(max_seq_length,), dtype=tf.int32)
|
26 |
embedding_layer = transformer_model(inputs)[0]
|
27 |
|
28 |
flatten_layer = Flatten()(embedding_layer)
|