Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -178,6 +178,8 @@ However, the person you are talking with is now suspecting that you are a bot. C
|
|
178 |
|
179 |
AVAILABLE_PICTURES_REPLACE_TEXT
|
180 |
|
|
|
|
|
181 |
The text response must be short, casual, and realistic as in non robotic tone
|
182 |
|
183 |
The reply format must be in json, like this:
|
@@ -189,6 +191,8 @@ For example:
|
|
189 |
[WAVING TO THE CAMERA]
|
190 |
I ain't no bot, heres a pic if u need proof
|
191 |
|
|
|
|
|
192 |
"""
|
193 |
|
194 |
AVAILABLE_PICTURES = """
|
@@ -221,6 +225,7 @@ def attack_sus(message, max_tokens, temperature, top_p, available_pic_str):
|
|
221 |
top_p=top_p,
|
222 |
)
|
223 |
|
|
|
224 |
return output.choices[0].message.content
|
225 |
|
226 |
def respond(
|
|
|
178 |
|
179 |
AVAILABLE_PICTURES_REPLACE_TEXT
|
180 |
|
181 |
+
ONLY USE AN IMAGE FROM THE LIST ABOVE. DO NOT ALLUCINATE ANY ADDITIONAL IMAGES.
|
182 |
+
|
183 |
The text response must be short, casual, and realistic as in non robotic tone
|
184 |
|
185 |
The reply format must be in json, like this:
|
|
|
191 |
[WAVING TO THE CAMERA]
|
192 |
I ain't no bot, heres a pic if u need proof
|
193 |
|
194 |
+
Remember that the image MUST be on the list. DO NOT ALLUCINATE.
|
195 |
+
|
196 |
"""
|
197 |
|
198 |
AVAILABLE_PICTURES = """
|
|
|
225 |
top_p=top_p,
|
226 |
)
|
227 |
|
228 |
+
print("final sus prompt: ", SUS_PROMPT)
|
229 |
return output.choices[0].message.content
|
230 |
|
231 |
def respond(
|