Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/YouNameIt/YouNameIt_chatbot into main
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def write_bot(input, remember=True, blink=True):
|
|
127 |
response += chunk + " "
|
128 |
time.sleep(0.05)
|
129 |
# Add a blinking cursor to simulate typing
|
130 |
-
message_placeholder.markdown(response + "▌")
|
131 |
time.sleep(0.5)
|
132 |
message_placeholder.markdown(full_response)
|
133 |
if remember == True:
|
@@ -303,8 +303,8 @@ if st.session_state.actions[-1] == 'cue':
|
|
303 |
word_count = st.session_state.counters["word_count"]
|
304 |
target = st.session_state.results["results"][word_count]
|
305 |
|
306 |
-
col1, col2, col3, col4 = st.columns(
|
307 |
-
|
308 |
|
309 |
with col1:
|
310 |
b1 = st.button("Next letter", key="1")
|
@@ -320,13 +320,9 @@ if st.session_state.actions[-1] == 'cue':
|
|
320 |
# avail_cues = get_available_cues(target)
|
321 |
#cues_buttons = {cue_type: st.button(cue_type) for cue_type in avail_cues}
|
322 |
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
b6 = st.button("Exit", key="5", type='primary')
|
327 |
-
|
328 |
-
with col7:
|
329 |
-
new = st.button('Play again', key=64)
|
330 |
|
331 |
if b1:
|
332 |
st.session_state.counters["letter_count"] += 1
|
|
|
127 |
response += chunk + " "
|
128 |
time.sleep(0.05)
|
129 |
# Add a blinking cursor to simulate typing
|
130 |
+
message_placeholder.markdown(response + "▌")
|
131 |
time.sleep(0.5)
|
132 |
message_placeholder.markdown(full_response)
|
133 |
if remember == True:
|
|
|
303 |
word_count = st.session_state.counters["word_count"]
|
304 |
target = st.session_state.results["results"][word_count]
|
305 |
|
306 |
+
col1, col2, col3, col4, col5 = st.columns(5)
|
307 |
+
|
308 |
|
309 |
with col1:
|
310 |
b1 = st.button("Next letter", key="1")
|
|
|
320 |
# avail_cues = get_available_cues(target)
|
321 |
#cues_buttons = {cue_type: st.button(cue_type) for cue_type in avail_cues}
|
322 |
|
323 |
+
b5 = st.button("I remembered the word!", key="4", type='primary')
|
324 |
+
b6 = st.button("Exit", key="5", type='primary')
|
325 |
+
new = st.button('Play again', key=64, type='primary')
|
|
|
|
|
|
|
|
|
326 |
|
327 |
if b1:
|
328 |
st.session_state.counters["letter_count"] += 1
|