snoop2head
commited on
Commit
Β·
30920d9
1
Parent(s):
e324e06
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import numpy as np
|
|
3 |
import streamlit as st
|
4 |
from transformers import AutoModelWithLMHead, PreTrainedTokenizerFast
|
5 |
|
6 |
-
|
7 |
model_dir = "snoop2head/kogpt-conditional-2"
|
8 |
tokenizer = PreTrainedTokenizerFast.from_pretrained(
|
9 |
model_dir,
|
@@ -66,7 +65,7 @@ print("slider sidebars rendering completed")
|
|
66 |
emotion_list = ["ν볡", "λλ", "λΆλ
Έ", "νμ€", "μ¬ν", "곡ν¬", "μ€λ¦½"]
|
67 |
main_emotion = st.sidebar.radio("μ£Όμ κ°μ μ μ ννμΈμ", emotion_list)
|
68 |
sub_emotion_list = emotion_list.reverse()
|
69 |
-
sub_emotion = st.sidebar.radio("λ λ²μ§Έ κ°μ μ μ ννμΈμ",
|
70 |
|
71 |
print("radio sidebars rendering completed")
|
72 |
|
|
|
3 |
import streamlit as st
|
4 |
from transformers import AutoModelWithLMHead, PreTrainedTokenizerFast
|
5 |
|
|
|
6 |
model_dir = "snoop2head/kogpt-conditional-2"
|
7 |
tokenizer = PreTrainedTokenizerFast.from_pretrained(
|
8 |
model_dir,
|
|
|
65 |
emotion_list = ["ν볡", "λλ", "λΆλ
Έ", "νμ€", "μ¬ν", "곡ν¬", "μ€λ¦½"]
|
66 |
main_emotion = st.sidebar.radio("μ£Όμ κ°μ μ μ ννμΈμ", emotion_list)
|
67 |
sub_emotion_list = emotion_list.reverse()
|
68 |
+
sub_emotion = st.sidebar.radio("λ λ²μ§Έ κ°μ μ μ ννμΈμ", sub_emotion_list)
|
69 |
|
70 |
print("radio sidebars rendering completed")
|
71 |
|