Matt09Miao commited on
Commit
251794e
·
verified ·
1 Parent(s): f7d8d92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,8 +8,8 @@ toxic_model = pipeline("text-classification", model="Matt09Miao/GP5_tweet_toxic"
8
 
9
  # text2story
10
  def text2story(text):
11
- pipe = pipeline("text-generation", model="distilbert/distilgpt2")
12
- tweet_text = pipe(text)[0]['generated_text']
13
  return tweet_text
14
 
15
  # text2audio
 
8
 
9
  # text2story
10
  def text2story(text):
11
+ pipe = pipeline("text2text-generation", model="tweetpie/stance-directed-tweet-generator")
12
+ tweet_text = pipe(text)
13
  return tweet_text
14
 
15
  # text2audio