Matt09Miao commited on
Commit
335f18b
·
verified ·
1 Parent(s): a5643e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import streamlit as st
 
 
2
  from transformers import pipeline
3
 
4
- # function part
5
- # Toxicity Analysis
6
- Toxic_model = pipeline("text-classification", model="Matt09Miao/GP5_tweet_toxic")
7
 
8
 
9
  # text2story
 
1
  import streamlit as st
2
+
3
+ # Use a pipeline as a high-level helper
4
  from transformers import pipeline
5
 
6
+ toxic_model = pipeline("text-classification", model="Matt09Miao/GP5_tweet_toxic")
 
 
7
 
8
 
9
  # text2story