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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -95,8 +95,14 @@ 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
- user_input = ""
99
 
 
 
 
 
 
 
 
100
  if option:
101
  user_input = st.text_area('Enter Text to Analyze', Value=option)
102
  else:
@@ -104,11 +110,6 @@ else:
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.
 
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
+ option = st.selectbox(
100
+ "How would you like to be contacted?",
101
+ ("Email", "Home phone", "Mobile phone"))
102
+
103
+ st.write("You selected:", option)
104
+
105
+ user_input = ""
106
  if option:
107
  user_input = st.text_area('Enter Text to Analyze', Value=option)
108
  else:
 
110
 
111
  button = st.button("Analyze")
112
 
 
 
 
 
 
113
 
114
  if button and user_input:
115
  alpaca_prompt = """Below is a conversation between a human and an AI agent. write a response based on the input.