Spaces:
Sleeping
Sleeping
Create app.py
#1
by
sammoffitt
- opened
app.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# app.py
|
| 2 |
+
import streamlit as st
|
| 3 |
+
|
| 4 |
+
st.header("Summarizer")
|
| 5 |
+
|
| 6 |
+
txt = st.text_area('Copy and paste your text here',
|
| 7 |
+
max_chars = 4000,
|
| 8 |
+
key="input_text")
|
| 9 |
+
st.write(txt)
|
| 10 |
+
|
| 11 |
+
topics = st.text_input('Choose topics, seperated by ,', '')
|
| 12 |
+
st.write(topics)
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
st.subheader("Word count")
|
| 16 |
+
word_count = st.slider("How long would you like your summary?", 10, 200)
|
| 17 |
+
st.write("Word count:", word_count)
|
| 18 |
+
|
| 19 |
+
st.button("Submit")
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
# if st.button('submit'):
|