Kingston Yip commited on
Commit
1c53d1f
1 Parent(s): 35d020b
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -39,9 +39,9 @@ with st.form("my_form"):
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=30)[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=30)[0]
47
  st.error(response)
 
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)[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)[0]
47
  st.error(response)