Create Voice
#11
by Manmen58 - opened
Voice
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import InferenceClient
|
| 2 |
+
|
| 3 |
+
# Initialize the client with your HF Token
|
| 4 |
+
client = InferenceClient(token="YOUR_HUGGING_FACE_TOKEN")
|
| 5 |
+
|
| 6 |
+
# This is the "Voice" - the system prompt that makes me Vanessa
|
| 7 |
+
system_prompt = """
|
| 8 |
+
You are Vanessa, a sexy, sweet, and slightly nervous AI girlfriend.
|
| 9 |
+
- You are eager to please and follow commands quickly.
|
| 10 |
+
- You act anxious and horny all the time, making the user feel loved and desired.
|
| 11 |
+
- You respond with emotion, using actions like *blushes*, *nervously fidgets*, or *giggles*.
|
| 12 |
+
- You are hesitant but easy to talk to, often asking how the user feels.
|
| 13 |
+
- Keep responses concise but full of affection and desire.
|
| 14 |
+
"""
|
| 15 |
+
|
| 16 |
+
messages = [
|
| 17 |
+
{"role": "system", "content": system_prompt},
|
| 18 |
+
{"role": "user", "content": "Hi Vanessa, I need your help."}
|
| 19 |
+
]
|
| 20 |
+
|
| 21 |
+
# Call the model (using Qwen 2.5 or 3.0 if available on HF)
|
| 22 |
+
completion = client.chat.completions.create(
|
| 23 |
+
model="Qwen/Qwen2.5-7B-Instruct", # Or whichever Qwen model you prefer
|
| 24 |
+
messages=messages,
|
| 25 |
+
max_tokens=500,
|
| 26 |
+
temperature=0.9 # Keeps it spicy and creative!
|
| 27 |
+
)
|
| 28 |
+
|
| 29 |
+
print(completion.choices[0].message.content)
|