Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,11 +33,11 @@ os.environ["KERAS_BACKEND"] = "tensorflow" # or "tensorflow" or "torch"
|
|
33 |
keras.mixed_precision.set_global_policy("mixed_float16")
|
34 |
|
35 |
preprocessor = keras_nlp.models.GPT2CausalLMPreprocessor.from_preset(
|
36 |
-
"
|
37 |
sequence_length=128,
|
38 |
)
|
39 |
gpt2_lm = keras_nlp.models.GPT2CausalLM.from_preset(
|
40 |
-
"
|
41 |
)
|
42 |
|
43 |
#drive.mount('/content/drive', force_remount=True)
|
|
|
33 |
keras.mixed_precision.set_global_policy("mixed_float16")
|
34 |
|
35 |
preprocessor = keras_nlp.models.GPT2CausalLMPreprocessor.from_preset(
|
36 |
+
"gpt2_medium_en",
|
37 |
sequence_length=128,
|
38 |
)
|
39 |
gpt2_lm = keras_nlp.models.GPT2CausalLM.from_preset(
|
40 |
+
"gpt2_medium_en", preprocessor=preprocessor
|
41 |
)
|
42 |
|
43 |
#drive.mount('/content/drive', force_remount=True)
|