Spaces:
Build error
Build error
Commit
·
3c75334
1
Parent(s):
f05e85c
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ if choice == 'NFT':
|
|
21 |
#st.text("Length in number of words: {}\n".format(length))
|
22 |
generated = generate(manual_input, max_length = 512, num_return_sequences=1)
|
23 |
st.write(generated)
|
24 |
-
|
25 |
-
st.write(
|
26 |
else:
|
27 |
st.write("Topic not available yet")
|
28 |
|
|
|
21 |
#st.text("Length in number of words: {}\n".format(length))
|
22 |
generated = generate(manual_input, max_length = 512, num_return_sequences=1)
|
23 |
st.write(generated)
|
24 |
+
tweet = summarize(generated_text, num_sentences=1)
|
25 |
+
st.write(tweet)
|
26 |
else:
|
27 |
st.write("Topic not available yet")
|
28 |
|