Spaces:
Build error
Build error
jcarbonnell
commited on
Commit
•
4a98f1a
1
Parent(s):
0ceee78
Update app.py
Browse files
app.py
CHANGED
@@ -14,12 +14,12 @@ choice = st.sidebar.selectbox("Select one topic", topics)
|
|
14 |
|
15 |
if choice == 'NFT':
|
16 |
manual_input = st.text_area("Manual input: (optional)")
|
17 |
-
num_sequences = st.text_area("Number of sequences: (default: 1)")
|
18 |
|
19 |
if st.button("Generate"):
|
20 |
#st.text("Keywords: {}\n".format(keywords))
|
21 |
#st.text("Length in number of words: {}\n".format(length))
|
22 |
-
generated = generate(manual_input, num_return_sequences=
|
23 |
st.text(generated)
|
24 |
#summary = summarize(generated_text, num_sentences=1)
|
25 |
#st.text("This is a tweet-sized summary of your article: ", summary)
|
|
|
14 |
|
15 |
if choice == 'NFT':
|
16 |
manual_input = st.text_area("Manual input: (optional)")
|
17 |
+
#num_sequences = st.text_area("Number of sequences: (default: 1)")
|
18 |
|
19 |
if st.button("Generate"):
|
20 |
#st.text("Keywords: {}\n".format(keywords))
|
21 |
#st.text("Length in number of words: {}\n".format(length))
|
22 |
+
generated = generate(manual_input, num_return_sequences=1)
|
23 |
st.text(generated)
|
24 |
#summary = summarize(generated_text, num_sentences=1)
|
25 |
#st.text("This is a tweet-sized summary of your article: ", summary)
|