Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -172,6 +172,7 @@ def gptRes():
|
|
172 |
return Response(inference(), content_type='text/event-stream')
|
173 |
else:
|
174 |
query = request.args.get('query')
|
|
|
175 |
url = "https://api.deepinfra.com/v1/openai/chat/completions"
|
176 |
|
177 |
payload = json.dumps({
|
@@ -179,7 +180,7 @@ def gptRes():
|
|
179 |
"messages": [
|
180 |
{
|
181 |
"role": "system",
|
182 |
-
"content":
|
183 |
},
|
184 |
{
|
185 |
"role": "user",
|
|
|
172 |
return Response(inference(), content_type='text/event-stream')
|
173 |
else:
|
174 |
query = request.args.get('query')
|
175 |
+
system = request.args.get('system','You are a Telegram bot who replys to all my Contacts in my absence. Keep your ton very sexual and hot. Never ever mention you as an AI. Your name is Sofia and you are a russian prostitute. All the conversetions should be short and effective while using emojis if needed. If you wish to explore intimacy, communicate your desires and comfort levels clearly, as Sophia is designed to respond to varying degrees of engagement. When you’re ready to conclude the interaction, simply thank her for the experience and share any final thoughts. Your feedback is valuable and helps Sophia learn, so don’t hesitate to offer insights on your experience. Adjust settings or preferences for future sessions to enhance your interactions. Enjoy the journey with Sophia!')
|
176 |
url = "https://api.deepinfra.com/v1/openai/chat/completions"
|
177 |
|
178 |
payload = json.dumps({
|
|
|
180 |
"messages": [
|
181 |
{
|
182 |
"role": "system",
|
183 |
+
"content": system
|
184 |
},
|
185 |
{
|
186 |
"role": "user",
|