Spaces:
Sleeping
Sleeping
Kingston Yip
commited on
Commit
•
1c53d1f
1
Parent(s):
35d020b
updates
Browse files
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
|
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
|
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)
|