820nam commited on
Commit
fd1df6b
·
verified ·
1 Parent(s): b45b655

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def load_translation_model():
33
  translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ko-en")
34
  return translator
35
 
36
- # Step 3: Hugging Face 감성 분석 모델 로드
37
  def load_huggingface_model():
38
  classifier = pipeline("text-classification", model="bucketresearch/politicalBiasBERT")
39
  st.write("모델 로드 완료")
@@ -115,7 +115,7 @@ if st.button("분석 시작"):
115
  st.write(f"보수: {results['보수']}건")
116
  st.write(f"중립: {results['중립']}건")
117
 
118
- # 파이 차트
119
  st.subheader("성향 분포 차트")
120
  st.bar_chart(pd.DataFrame.from_dict(results, orient='index', columns=["건수"]))
121
 
 
33
  translator = pipeline("translation", model="Helsinki-NLP/opus-mt-ko-en")
34
  return translator
35
 
36
+ # Step 3: Hugging Face 정치 성향 분석 모델 로드
37
  def load_huggingface_model():
38
  classifier = pipeline("text-classification", model="bucketresearch/politicalBiasBERT")
39
  st.write("모델 로드 완료")
 
115
  st.write(f"보수: {results['보수']}건")
116
  st.write(f"중립: {results['중립']}건")
117
 
118
+ # 성향 분포 차트
119
  st.subheader("성향 분포 차트")
120
  st.bar_chart(pd.DataFrame.from_dict(results, orient='index', columns=["건수"]))
121