Spaces:
Sleeping
Sleeping
fengxiang
commited on
Commit
•
74d362a
1
Parent(s):
ee0f4cc
update space
Browse files
app.py
CHANGED
@@ -43,12 +43,12 @@ def form_article_click():
|
|
43 |
print(article)
|
44 |
result = pipe(article)
|
45 |
print(result)
|
46 |
-
st.session_state.type=result[0]["label"]
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
st.session_state.result=result
|
53 |
|
54 |
st.title("AI write or Human write v2")
|
|
|
43 |
print(article)
|
44 |
result = pipe(article)
|
45 |
print(result)
|
46 |
+
# st.session_state.type=result[0]["label"]
|
47 |
+
if result:
|
48 |
+
if result[0]["label"]=="人类写的":
|
49 |
+
st.session_state.type="Human writing"
|
50 |
+
elif result[0]["label"]=="ai写的":
|
51 |
+
st.session_state.type="AI writing"
|
52 |
st.session_state.result=result
|
53 |
|
54 |
st.title("AI write or Human write v2")
|