Spaces:
Runtime error
Runtime error
Commit
·
22f0471
1
Parent(s):
e5b54f1
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
default_value = "Mike and Anna is skiing"
|
4 |
-
sent = st.text_area("Text", default_value, height =
|
5 |
num_return_sequences = st.sidebar.number_input('Number of Return Sequences', min_value=1, max_value=3, value=1, step=1)
|
6 |
|
7 |
### Run Model
|
@@ -25,6 +25,6 @@ generated_sequences = []
|
|
25 |
for generated_sequence_idx, generated_sequence in enumerate(results):
|
26 |
# Decode text
|
27 |
text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True)
|
28 |
-
generated_sequences.append(
|
29 |
|
30 |
st.write(generated_sequences)
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
default_value = "Mike and Anna is skiing"
|
4 |
+
sent = st.text_area("Text", default_value, height = 50)
|
5 |
num_return_sequences = st.sidebar.number_input('Number of Return Sequences', min_value=1, max_value=3, value=1, step=1)
|
6 |
|
7 |
### Run Model
|
|
|
25 |
for generated_sequence_idx, generated_sequence in enumerate(results):
|
26 |
# Decode text
|
27 |
text = tokenizer.decode(generated_sequence, clean_up_tokenization_spaces=True)
|
28 |
+
generated_sequences.append(text)
|
29 |
|
30 |
st.write(generated_sequences)
|