Emma0123 commited on
Commit
fd6e0d0
1 Parent(s): 0f28037

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -4,8 +4,9 @@ from transformers import pipeline
4
  pipe1 = pipeline("text-classification", model="Emma0123/fine_tuned_model")
5
  pipe2 = pipeline("text-classification", model="jonas/roberta-base-finetuned-sdg")
6
 
7
- # 获取用户输入的文本
8
- input_text = input("Please enter the text: ")
 
9
 
10
  # 使用第一个模型进行预测
11
  result1 = pipe1(input_text)
 
4
  pipe1 = pipeline("text-classification", model="Emma0123/fine_tuned_model")
5
  pipe2 = pipeline("text-classification", model="jonas/roberta-base-finetuned-sdg")
6
 
7
+ st.title("ESG with HuggingFace Spaces")
8
+ st.write("Enter a sentence to analyze its ESG")
9
+ user_input =st.text_input("")
10
 
11
  # 使用第一个模型进行预测
12
  result1 = pipe1(input_text)