eaglelandsonce commited on
Commit
68c5fd5
·
verified ·
1 Parent(s): 92c5d90

Update pages/17_RNN.py

Browse files
Files changed (1) hide show
  1. pages/17_RNN.py +2 -2
pages/17_RNN.py CHANGED
@@ -11,8 +11,8 @@ The RNN learns the sequence of characters from a provided text and generates tex
11
  You can choose different options for training the RNN and see how it affects the generated text.
12
  """)
13
 
14
- # Define the dataset
15
- sequence = "In the vast expanse of the digital realm."
16
  chars = list(set(sequence))
17
  data_size, vocab_size = len(sequence), len(chars)
18
 
 
11
  You can choose different options for training the RNN and see how it affects the generated text.
12
  """)
13
 
14
+ # User input for the training string
15
+ sequence = st.text_area('Enter the training string:', 'In the vast expanse of the digital realm.')
16
  chars = list(set(sequence))
17
  data_size, vocab_size = len(sequence), len(chars)
18