Ghosthash commited on
Commit
95187c5
·
verified ·
1 Parent(s): d12a73f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -3,6 +3,7 @@ from transformers import pipeline
3
  from datasets import load_dataset
4
 
5
  load_dataset("kaifahmad/Hate-Speech-Tweets")
 
6
  # pipe = pipeline("text-generation", model="cognitivecomputations/dolphin-2.7-mixtral-8x7b")
7
  pipe = pipeline("text-generation", model="meta-llama/Llama-3.2-1B", device=1)
8
  text = st.text_input('enter text here')
 
3
  from datasets import load_dataset
4
 
5
  load_dataset("kaifahmad/Hate-Speech-Tweets")
6
+ load_dataset("m-newhauser/distilbert-political-tweets")
7
  # pipe = pipeline("text-generation", model="cognitivecomputations/dolphin-2.7-mixtral-8x7b")
8
  pipe = pipeline("text-generation", model="meta-llama/Llama-3.2-1B", device=1)
9
  text = st.text_input('enter text here')