ababio commited on
Commit
0c23cf6
1 Parent(s): c8c7dcc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -90,9 +90,17 @@ st.write(" ")
90
  st.write(" ")
91
  st.write("Write or paste any number of document texts to analyse the emotion percentage with your document")
92
 
93
- user_input = st.text_area('Enter Text to Analyze')
 
 
 
 
 
94
  button = st.button("Analyze")
95
 
 
 
 
96
  if user_input and button:
97
  alpaca_prompt = """Below is a conversation between a human and an AI agent. write a response based on the input.
98
  ### Instruction:
 
90
  st.write(" ")
91
  st.write("Write or paste any number of document texts to analyse the emotion percentage with your document")
92
 
93
+ # Add button to fill in sample text
94
+ if st.button("Use Sample Text"):
95
+ user_input = "Once, in a small village nestled in the rolling hills of Tuscany, lived an elderly woman named Isabella. She had spent her entire life in this village, raising her children and caring for her garden, which was the most beautiful in the region. Her husband, Marco, had passed away many years ago, leaving her with a heart full of memories and a small, quaint house that overlooked the lush vineyards."
96
+ else:
97
+ user_input = st.text_area('Enter Text to Analyze')
98
+
99
  button = st.button("Analyze")
100
 
101
+
102
+
103
+
104
  if user_input and button:
105
  alpaca_prompt = """Below is a conversation between a human and an AI agent. write a response based on the input.
106
  ### Instruction: