ashirhashmi commited on
Commit
0a909f3
·
verified ·
1 Parent(s): e26b5d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -22,8 +22,15 @@ st.write("""
22
  Enter the text you want to summarize in the box below and click "Summarize" to see the result.
23
  """)
24
 
 
 
 
 
 
 
25
  # User input
26
- text_input = st.text_area("Enter text to summarize", height=300, placeholder="Paste your text here...")
 
27
 
28
  # Summarize the text
29
  if st.button("Summarize"):
@@ -39,4 +46,4 @@ if st.button("Summarize"):
39
  except Exception as e:
40
  st.error(f"An error occurred during summarization: {e}")
41
  else:
42
- st.warning("Please enter some text to summarize.")
 
22
  Enter the text you want to summarize in the box below and click "Summarize" to see the result.
23
  """)
24
 
25
+ # Main layout
26
+ placeholder_text = ("It has been shown that vehicles contribute significantly to pollution levels and have a considerable impact on respiratory health, "
27
+ "particularly for those aged over fifty. Factories have also been shown to be significant contributors, with those living closest to "
28
+ "unfiltered petrochemical factories being the most at risk. Finally, one uncommonly considered polluter was also explored. This was the use "
29
+ "of volatile organic compounds (VOCs) in commercial paints which have a tendency to negatively affect the health of people in their own homes.")
30
+
31
  # User input
32
+ st.subheader("Input Text")
33
+ text_input = st.text_area("Enter text to summarize", height=300, placeholder=placeholder_text)
34
 
35
  # Summarize the text
36
  if st.button("Summarize"):
 
46
  except Exception as e:
47
  st.error(f"An error occurred during summarization: {e}")
48
  else:
49
+ st.warning("Please enter some text to summarize.")