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

use degen-tweet-generator-v1

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,13 +1,12 @@
1
  import streamlit as st
2
  from transformers import pipeline
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')
10
 
11
  if text:
 
 
 
12
  out = pipe(text)
13
  st.json(out)
 
1
  import streamlit as st
2
  from transformers import pipeline
 
3
 
4
+ pipe = pipeline("text-generation", model="yubi12/autotrain-crypto-degen-tweet-generator-v1", device=1)
 
 
 
5
  text = st.text_input('enter text here')
6
 
7
  if text:
8
+ messages = [
9
+ {"role": "user", "content": text},
10
+ ]
11
  out = pipe(text)
12
  st.json(out)