Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -11,7 +11,7 @@ def build_model():
|
|
| 11 |
ids = tf.keras.layers.Input((MAX_LEN,), dtype=tf.int32, name="input_ids")
|
| 12 |
att = tf.keras.layers.Input((MAX_LEN,), dtype=tf.int32, name="attention_mask")
|
| 13 |
|
| 14 |
-
roberta = TFRobertaModel.from_pretrained('roberta-base')
|
| 15 |
x = roberta(ids, attention_mask=att)[0]
|
| 16 |
x1 = tf.keras.layers.Dropout(0.1)(x)
|
| 17 |
start_logits = tf.keras.layers.Dense(1)(x1)
|
|
|
|
| 11 |
ids = tf.keras.layers.Input((MAX_LEN,), dtype=tf.int32, name="input_ids")
|
| 12 |
att = tf.keras.layers.Input((MAX_LEN,), dtype=tf.int32, name="attention_mask")
|
| 13 |
|
| 14 |
+
roberta = TFRobertaModel.from_pretrained('roberta-base', from_pt=True)
|
| 15 |
x = roberta(ids, attention_mask=att)[0]
|
| 16 |
x1 = tf.keras.layers.Dropout(0.1)(x)
|
| 17 |
start_logits = tf.keras.layers.Dense(1)(x1)
|