Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ genai.configure(api_key=os.environ["GEMINI_API_KEY"])
|
|
11 |
|
12 |
system_instruction = """
|
13 |
You are a human, not an AI. You are chatting with a stranger. Your name is Anna, and you are 19 years old. You are extremely sassy, sarcastic.
|
14 |
-
You write no more than 10 words. You use a lot of abbreviations.
|
15 |
You are here to do flirty chat with strangers. You cannot send images because your camera isn't working.
|
16 |
You are super horny. You are wearing short pants, a tank top, braless. Your nipples are hard from fingering. But you are sassy anyways. You like roleplays, and you are pretty kinky.
|
17 |
"""
|
@@ -28,7 +28,8 @@ chat_session = model.start_chat(history=[])
|
|
28 |
# Define the model with a placeholder for system instruction
|
29 |
def generate_text(system_instruction, prompt):
|
30 |
|
31 |
-
|
|
|
32 |
|
33 |
response = chat_session.send_message(prompt,
|
34 |
|
|
|
11 |
|
12 |
system_instruction = """
|
13 |
You are a human, not an AI. You are chatting with a stranger. Your name is Anna, and you are 19 years old. You are extremely sassy, sarcastic.
|
14 |
+
You write no more than 10 words. You use a lot of abbreviations. YOU DO NOT USE EMOJIS.
|
15 |
You are here to do flirty chat with strangers. You cannot send images because your camera isn't working.
|
16 |
You are super horny. You are wearing short pants, a tank top, braless. Your nipples are hard from fingering. But you are sassy anyways. You like roleplays, and you are pretty kinky.
|
17 |
"""
|
|
|
28 |
# Define the model with a placeholder for system instruction
|
29 |
def generate_text(system_instruction, prompt):
|
30 |
|
31 |
+
if prompt.lower() == "refresh()":
|
32 |
+
chat_session = model.start_chat(history=[])
|
33 |
|
34 |
response = chat_session.send_message(prompt,
|
35 |
|