Spaces:
Sleeping
Sleeping
Update app.py
Browse files101 unmodified lines1021031041051061071081091101111121131141151161171181191201211221231241251261271281293 unmodified lines133134135136137138101 unmodified lines# st.write("You selected:", option)if "visibility" not in st.session_state:st.session_state.visibility = "visible"st.session_state.disabled = Falseoption = ""# village = st.checkbox("Small village")# life = st.checkbox("Entire life")st.radio("Select sample texts analyse emotion 👉",key="visibility",options=["village", "life", "another"],)if st.session_state.visibility == "village":option = "Once, in a small village nestled in the rolling hills of Tuscany, lived an elderly woman named Isabella."elif st.session_state.visibility == "life":option = "She had spent her entire life in this village, raising her children and caring for her garden, which was the most"elif st.session_state.visibility == "another":option = "beautiful in the region. Her husband, Marco, had passed away many years ago, leaving her with a heart full of memories "else:option =""user_input = ""if option:3 unmodified linesbutton = st.button("Analyze")if button and user_input:alpaca_prompt = """Below is a conversation between a human and an AI agent. write a response based on the input.101 unmodified lines1021031041051061071081093 unmodified lines113114115116117118119120121122123124125126127128129130131132101 unmodified lines# st.write("You selected:", option)option = ""user_input = ""if option:3 unmodified linesbutton = st.button("Analyze")st.write("Select sample texts analyse emotion 👉")village = st.checkbox("Small village")life = st.checkbox("Entire life")if village:option = "Once, in a small village nestled in the rolling hills of Tuscany, lived an elderly woman named Isabella."elif life:option = "She had spent her entire life in this village, raising her children and caring for her garden, which was the most"elif another:option = "beautiful in the region. Her husband, Marco, had passed away many years ago, leaving her with a heart full of memories "else:option =""if button and user_input:alpaca_prompt = """Below is a conversation between a human and an AI agent. write a response based on the input.
app.py+14-20