Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,16 +27,21 @@ text = st.text_area("Your input")
|
|
27 |
st.write("Enter seed.")
|
28 |
seed_input = st.text_area("Set seed")
|
29 |
|
|
|
|
|
|
|
|
|
|
|
30 |
# Convert seed input to integer
|
31 |
try:
|
32 |
seed = int(seed_input)
|
|
|
33 |
except ValueError:
|
34 |
seed = None
|
|
|
35 |
|
36 |
set_seed(seed)
|
37 |
|
38 |
-
st.write("Enter max length.")
|
39 |
-
maxLength = st.text_area("max length")
|
40 |
|
41 |
|
42 |
if text and seed and maxLength:
|
|
|
27 |
st.write("Enter seed.")
|
28 |
seed_input = st.text_area("Set seed")
|
29 |
|
30 |
+
|
31 |
+
|
32 |
+
st.write("Enter max length.")
|
33 |
+
maxLength = st.text_area("max length")
|
34 |
+
|
35 |
# Convert seed input to integer
|
36 |
try:
|
37 |
seed = int(seed_input)
|
38 |
+
maxLength = int(maxLength)
|
39 |
except ValueError:
|
40 |
seed = None
|
41 |
+
maxLength = None
|
42 |
|
43 |
set_seed(seed)
|
44 |
|
|
|
|
|
45 |
|
46 |
|
47 |
if text and seed and maxLength:
|