Update app.py
Browse files
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 |
-
|
|
|
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)
|