Spaces:
Runtime error
Runtime error
snoop2head
commited on
Commit
β’
e324e06
1
Parent(s):
77a934c
Update app.py
Browse files
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 |
-
|
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")
|