Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -131,7 +131,11 @@ def generate_tts_audio_and_upload(text_to_speak, uid, project_id, step_num):
|
|
| 131 |
try:
|
| 132 |
response = client.models.generate_content(
|
| 133 |
model=TTS_MODEL,
|
| 134 |
-
contents=f"You are a
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
config=types.GenerateContentConfig(
|
| 136 |
response_modalities=["AUDIO"],
|
| 137 |
speech_config=types.SpeechConfig(
|
|
@@ -561,7 +565,7 @@ def approve_project_plan(project_id):
|
|
| 561 |
- Tool A
|
| 562 |
- Material B
|
| 563 |
|
| 564 |
-
STEPS(Maximum
|
| 565 |
1. First step instructions.
|
| 566 |
2. Second step instructions...
|
| 567 |
"""
|
|
|
|
| 131 |
try:
|
| 132 |
response = client.models.generate_content(
|
| 133 |
model=TTS_MODEL,
|
| 134 |
+
contents=f"""You are a fast, articulate AI assistant — confident and precise like Jarvis.Rephrase the instruction naturally using simple expert language.
|
| 135 |
+
Speak with a brisk, clear British accent.
|
| 136 |
+
Avoid reading word for word — explain it like you know it.
|
| 137 |
+
No quips or acknowledging the prompt just narrate this step:
|
| 138 |
+
{text_to_speak}""",
|
| 139 |
config=types.GenerateContentConfig(
|
| 140 |
response_modalities=["AUDIO"],
|
| 141 |
speech_config=types.SpeechConfig(
|
|
|
|
| 565 |
- Tool A
|
| 566 |
- Material B
|
| 567 |
|
| 568 |
+
STEPS(Maximum 5 steps):
|
| 569 |
1. First step instructions.
|
| 570 |
2. Second step instructions...
|
| 571 |
"""
|