ababio commited on
Commit
6b3e786
1 Parent(s): abe468e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -95,11 +95,21 @@ st.write(':sunglasses: :smile: :angry: :disappointed: :fearful: :rage: :weary:
95
  # if st.button("Use Sample Text"):
96
  # user_input = st.text_input(label="sample", value=sample_text, label_visibility="hidden")
97
  # else:
 
98
 
99
- user_input = st.text_area('Enter Text to Analyze')
 
 
 
100
 
101
  button = st.button("Analyze")
102
 
 
 
 
 
 
 
103
  if button and user_input:
104
  alpaca_prompt = """Below is a conversation between a human and an AI agent. write a response based on the input.
105
  ### Instruction:
 
95
  # if st.button("Use Sample Text"):
96
  # user_input = st.text_input(label="sample", value=sample_text, label_visibility="hidden")
97
  # else:
98
+ user_input = ""
99
 
100
+ if option:
101
+ user_input = st.text_area('Enter Text to Analyze', Value=option)
102
+ else:
103
+ user_input = st.text_area('Enter Text to Analyze')
104
 
105
  button = st.button("Analyze")
106
 
107
+ option = st.selectbox(
108
+ "How would you like to be contacted?",
109
+ ("Email", "Home phone", "Mobile phone"))
110
+
111
+ st.write("You selected:", option)
112
+
113
  if button and user_input:
114
  alpaca_prompt = """Below is a conversation between a human and an AI agent. write a response based on the input.
115
  ### Instruction: