Instructions to use abdelmoatyy/shakespeare-rnn with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Keras
How to use abdelmoatyy/shakespeare-rnn with Keras:
# !pip install -U keras tensorflow huggingface_hub # Keras needs TensorFlow installed to read "hf://" paths, so the tensorflow backend is selected here; # "jax" and "torch" also work for computation once TensorFlow is installed. import os os.environ["KERAS_BACKEND"] = "tensorflow" import keras model = keras.saving.load_model("hf://abdelmoatyy/shakespeare-rnn") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
tags:
|
| 4 |
+
- text-generation
|
| 5 |
+
- tensorflow
|
| 6 |
+
- shakespeare
|
| 7 |
+
library_name: keras
|
| 8 |
+
---
|
| 9 |
+
# Shakespeare RNN
|
| 10 |
+
|
| 11 |
+
This model was trained on the Shakespeare dataset to generate text character-by-character.
|
| 12 |
+
|
| 13 |
+
## Model Details
|
| 14 |
+
- **Architecture:** RNN
|
| 15 |
+
- **Embedding Dim:** 256
|
| 16 |
+
- **RNN Units:** 512
|
| 17 |
+
- **Sequence Length:** 100
|
| 18 |
+
|
| 19 |
+
## Usage
|
| 20 |
+
Requires the `vocab_mapping.json` file included in this repo to map integers back to characters.
|