Spaces:
Sleeping
Sleeping
Kingston Yip
commited on
Commit
·
67e1b13
1
Parent(s):
e4056e6
updates
Browse files
app.py
CHANGED
@@ -35,13 +35,14 @@ with st.form("my_form"):
|
|
35 |
'''
|
36 |
|
37 |
if out[0]["label"] == "POSITIVE" or out[0]["label"] == "POS":
|
38 |
-
st.balloons()
|
39 |
-
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!"
|
40 |
-
generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
|
41 |
-
response = generator(prompt)
|
42 |
-
st.
|
43 |
else:
|
44 |
-
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!"
|
45 |
-
generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
|
46 |
-
response = generator(prompt)
|
47 |
-
st.success(response)
|
|
|
|
35 |
'''
|
36 |
|
37 |
if out[0]["label"] == "POSITIVE" or out[0]["label"] == "POS":
|
38 |
+
# st.balloons()
|
39 |
+
# 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!"
|
40 |
+
# generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
|
41 |
+
# response = generator(prompt)
|
42 |
+
st.success("nice")
|
43 |
else:
|
44 |
+
# 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!"
|
45 |
+
# generator = pipeline('text-generation', model='EleutherAI/gpt-neo-1.3B')
|
46 |
+
# response = generator(prompt)
|
47 |
+
# st.success(response)
|
48 |
+
st.fail("ew")
|