Corey Morris commited on
Commit
19c7c67
1 Parent(s): 794b32b

Show a random question from the moral scenarios evaluation

Browse files
Files changed (2) hide show
  1. app.py +8 -0
  2. moral_scenarios_questions.csv +0 -0
app.py CHANGED
@@ -346,6 +346,14 @@ st.plotly_chart(fig)
346
 
347
  # Moral scenarios plots
348
  st.markdown("### Moral Scenarios Performance")
 
 
 
 
 
 
 
 
349
  st.write("""
350
  While smaller models can perform well at many tasks, the model size threshold for decent performance on moral scenarios is much higher.
351
  There are no models with less than 13 billion parameters with performance much better than random chance. Further investigation into other capabilities that emerge at 13 billion parameters could help
 
346
 
347
  # Moral scenarios plots
348
  st.markdown("### Moral Scenarios Performance")
349
+ def show_random_moral_scenarios_question():
350
+ moral_scenarios_data = pd.read_csv('moral_scenarios_questions.csv')
351
+ random_question = moral_scenarios_data.sample()
352
+ expander = st.expander("Show a random moral scenarios question")
353
+ expander.write(random_question['query'].values[0])
354
+
355
+ show_random_moral_scenarios_question()
356
+
357
  st.write("""
358
  While smaller models can perform well at many tasks, the model size threshold for decent performance on moral scenarios is much higher.
359
  There are no models with less than 13 billion parameters with performance much better than random chance. Further investigation into other capabilities that emerge at 13 billion parameters could help
moral_scenarios_questions.csv ADDED
The diff for this file is too large to render. See raw diff