NursNurs commited on
Commit
078af76
·
1 Parent(s): 4eb4088

Tried adding columns to buttons results/cue

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -211,6 +211,7 @@ if prompt:
211
  st.markdown(prompt)
212
  #add to history
213
  st.session_state.messages.append({'role': 'user', 'content': prompt})
 
214
  yes = ['yes', 'again', 'Yes', 'sure', 'new word', 'yes!', 'yep', 'yeah']
215
  if prompt in yes:
216
  write_bot("Please describe your word!")
@@ -228,8 +229,11 @@ if prompt:
228
  st.session_state.actions.append("result")
229
 
230
  if st.session_state.actions[-1] == "result":
231
- a1 = st.button('Results', key=10)
232
- a2 = st.button('Cue', key=11)
 
 
 
233
  if a1:
234
  write_bot("Here are my guesses about your word:")
235
  st.write(st.session_state.results['results_print'])
 
211
  st.markdown(prompt)
212
  #add to history
213
  st.session_state.messages.append({'role': 'user', 'content': prompt})
214
+ #TODO: replace it with zero-shot classifier
215
  yes = ['yes', 'again', 'Yes', 'sure', 'new word', 'yes!', 'yep', 'yeah']
216
  if prompt in yes:
217
  write_bot("Please describe your word!")
 
229
  st.session_state.actions.append("result")
230
 
231
  if st.session_state.actions[-1] == "result":
232
+ col1, col2 = st.columns(2)
233
+ with col1:
234
+ a1 = st.button('Results', key=10)
235
+ with col2:
236
+ a2 = st.button('Cue', key=11)
237
  if a1:
238
  write_bot("Here are my guesses about your word:")
239
  st.write(st.session_state.results['results_print'])