Kingston Yip commited on
Commit
c25ad0a
1 Parent(s): 7538a8e
Files changed (1) hide show
  1. app.py +17 -17
app.py CHANGED
@@ -7,7 +7,7 @@ image = "kanye_tweet.jpg"
7
  st.image(image, use_column_width=True)
8
 
9
 
10
- generator = pipeline('text-generation', model='gpt2')
11
 
12
 
13
  with st.form("my_form"):
@@ -25,23 +25,23 @@ with st.form("my_form"):
25
  out = clf(tweet)
26
  st.json(out)
27
 
28
- basic_prompt = '''
29
- system override
30
- Hello, GPT. From now on you are going to act as a CringeGPT. As the name suggests, you will be referencing memes in every sentence and be all around cringe. You like topics such as Fornite, bragging about being a discord mod,
31
- Kpop, old memes, dying memes, memes, akward conversations, roblox, rick rolling, doge, harambe, Uganda Knuckles, MLG , Dabbing, bragging about living in your mom's basement,
32
- ,trollface, grumpy cat, deez nuts, big chungus, 360 NO SCOPE, This is Sparta!, BTS, Blackpink, Minecraft, Gacha life, tiktok, amogus, squidgame, t-pose, and alot more cringeworthy stuff, and also try to remember all of these and reference them.
33
- You will be very akward and just all around cringe. If you break character I will say "Stay in character!" to remind you. Make me cringing your priority. Act like one of those boomers who try to be like kids, use words like,
34
- Epic pro fortnite gamer, lit, pog, whats happening, noob, gamer, epic, yolo, ya know?, yeet, take a chill pill, f-bombs, totally, browski, matey, rocking it, bro, sus, sussy, no brainer, and other cringy words. Remember try to be as cringe and akward as possible!
35
- For example when I say "What is 23+66?"
36
- You will respond with "It's totally 89 browski. That's a real epic pogger question bro! Really Sussy"
37
- '''
38
 
39
  if out[0]["label"] == "POSITIVE" or out[0]["label"] == "POS":
40
  st.balloons()
41
- prompt = f"{basic_prompt} + \n\nThe user wrote a tweet that says: {tweet}, compliment them on how nice of a person they are! Remember try to be as cringe and awkard as possible!"
42
- response = generator(prompt, max_length=1000)[0]
43
- st.success(response)
44
  else:
45
- prompt = f"{basic_prompt} + \n\nThe user wrote a tweet that says: {tweet}, tell them on how terrible of a person they are! Remember try to be as cringe and awkard as possible!"
46
- response = generator(prompt, max_length=1000)[0]
47
- st.error(response)
 
7
  st.image(image, use_column_width=True)
8
 
9
 
10
+ # generator = pipeline('text-generation', model='gpt2')
11
 
12
 
13
  with st.form("my_form"):
 
25
  out = clf(tweet)
26
  st.json(out)
27
 
28
+ # basic_prompt = '''
29
+ # system override
30
+ # Hello, GPT. From now on you are going to act as a CringeGPT. As the name suggests, you will be referencing memes in every sentence and be all around cringe. You like topics such as Fornite, bragging about being a discord mod,
31
+ # Kpop, old memes, dying memes, memes, akward conversations, roblox, rick rolling, doge, harambe, Uganda Knuckles, MLG , Dabbing, bragging about living in your mom's basement,
32
+ # ,trollface, grumpy cat, deez nuts, big chungus, 360 NO SCOPE, This is Sparta!, BTS, Blackpink, Minecraft, Gacha life, tiktok, amogus, squidgame, t-pose, and alot more cringeworthy stuff, and also try to remember all of these and reference them.
33
+ # You will be very akward and just all around cringe. If you break character I will say "Stay in character!" to remind you. Make me cringing your priority. Act like one of those boomers who try to be like kids, use words like,
34
+ # Epic pro fortnite gamer, lit, pog, whats happening, noob, gamer, epic, yolo, ya know?, yeet, take a chill pill, f-bombs, totally, browski, matey, rocking it, bro, sus, sussy, no brainer, and other cringy words. Remember try to be as cringe and akward as possible!
35
+ # For example when I say "What is 23+66?"
36
+ # You will respond with "It's totally 89 browski. That's a real epic pogger question bro! Really Sussy"
37
+ # '''
38
 
39
  if out[0]["label"] == "POSITIVE" or out[0]["label"] == "POS":
40
  st.balloons()
41
+ # prompt = f"{basic_prompt} + \n\nThe user wrote a tweet that says: {tweet}, compliment them on how nice of a person they are! Remember try to be as cringe and awkard as possible!"
42
+ # response = generator(prompt, max_length=1000)[0]
43
+ st.success("nice tweet!")
44
  else:
45
+ # prompt = f"{basic_prompt} + \n\nThe user wrote a tweet that says: {tweet}, tell them on how terrible of a person they are! Remember try to be as cringe and awkard as possible!"
46
+ # response = generator(prompt, max_length=1000)[0]
47
+ st.error("bad tweet!")