Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ input_text =st.text_input("")
|
|
| 12 |
result1 = pipe1(input_text)
|
| 13 |
|
| 14 |
# 判断第一个模型的输出结果
|
| 15 |
-
if result1[0]['label'] == '
|
| 16 |
result2 = pipe2(input_text)
|
| 17 |
print(result2)
|
| 18 |
else:
|
|
|
|
| 12 |
result1 = pipe1(input_text)
|
| 13 |
|
| 14 |
# 判断第一个模型的输出结果
|
| 15 |
+
if result1[0]['label'] == 'environmental': # 根据您的模型实际返回的标签进行修改
|
| 16 |
result2 = pipe2(input_text)
|
| 17 |
print(result2)
|
| 18 |
else:
|