snoop2head commited on
Commit
e324e06
β€’
1 Parent(s): 77a934c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,5 +1,4 @@
1
  # -*- coding: utf-8 -*-
2
- import random
3
  import numpy as np
4
  import streamlit as st
5
  from transformers import AutoModelWithLMHead, PreTrainedTokenizerFast
@@ -64,9 +63,9 @@ top_p = st.sidebar.slider("Top-p", min_value=0.0, max_value=1.0, step=0.05, valu
64
  print("slider sidebars rendering completed")
65
 
66
  # make input sentence
67
- emotion_list = ["행볡", "쀑립", "λΆ„λ…Έ", "혐였", "λ†€λžŒ", "μŠ¬ν””", "곡포"]
68
  main_emotion = st.sidebar.radio("μ£Όμš” 감정을 μ„ νƒν•˜μ„Έμš”", emotion_list)
69
- random.shuffle(emotion_list)
70
  sub_emotion = st.sidebar.radio("두 번째 감정을 μ„ νƒν•˜μ„Έμš”", emotion_list)
71
 
72
  print("radio sidebars rendering completed")
 
1
  # -*- coding: utf-8 -*-
 
2
  import numpy as np
3
  import streamlit as st
4
  from transformers import AutoModelWithLMHead, PreTrainedTokenizerFast
 
63
  print("slider sidebars rendering completed")
64
 
65
  # make input sentence
66
+ emotion_list = ["행볡", "λ†€λžŒ", "λΆ„λ…Έ", "혐였", "μŠ¬ν””", "곡포", "쀑립"]
67
  main_emotion = st.sidebar.radio("μ£Όμš” 감정을 μ„ νƒν•˜μ„Έμš”", emotion_list)
68
+ sub_emotion_list = emotion_list.reverse()
69
  sub_emotion = st.sidebar.radio("두 번째 감정을 μ„ νƒν•˜μ„Έμš”", emotion_list)
70
 
71
  print("radio sidebars rendering completed")