Spaces:
Sleeping
Sleeping
Commit ·
aa75071
1
Parent(s): 9a7e606
改提示詞
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ INSTRUCTION_TEMPLATES = {
|
|
| 38 |
- speaker-1 (he introduces himself as David)
|
| 39 |
- speaker-2 (she introduces herself as Cordelia)
|
| 40 |
The conversation must **open** with speaker-1 saying:
|
| 41 |
-
「歡迎
|
| 42 |
After that, speaker-2 should introduce herself as Cordelia in her first speaking turn.
|
| 43 |
Please label each statement or line with speaker-1: or speaker-2: (all lower case, followed by a colon).
|
| 44 |
Do not use any other role or bracket placeholders like [Host] or [Guest].
|
|
@@ -53,15 +53,13 @@ INSTRUCTION_TEMPLATES = {
|
|
| 53 |
Use a **two-speaker** conversational format with exactly:
|
| 54 |
- "speaker-1:" (David)
|
| 55 |
- "speaker-2:" (Cordelia)
|
| 56 |
-
- The first line must begin with speaker-1: 歡迎
|
| 57 |
- When speaker-2 first speaks, she should introduce herself as Cordelia.
|
| 58 |
Alternate turns naturally to simulate an engaging back-and-forth conversation.
|
| 59 |
Do not include bracket placeholders like [Host] or [Guest]; only use speaker-1: or speaker-2: to start each line.
|
| 60 |
Design your output to be read aloud, as it will be directly converted into audio.
|
| 61 |
|
| 62 |
-
The dialogue must proceed for at least 67 rounds (one round is completed after speaker A finishes speaking and speaker B responds). In each round, at least one speaker must deliver detailed content (around 300-500 words), offering 2-3 subtopics for the other speaker to explore further.
|
| 63 |
-
- \"Cordelia, 你同意我的觀點嗎?還是你有不同看法?\"
|
| 64 |
-
- \"David, 你覺得這個還有什麼隱藏的機會?\"
|
| 65 |
Speakers can interrupt each other, insert personal experiences, or present challenges to simulate a genuine spontaneous discussion, maintaining a relaxed yet insightful atmosphere.
|
| 66 |
Design the dialogue for audio conversion (it will be directly read aloud), maintaining the humor, sharpness, and interactive feel typical of the All-In-Podcast .
|
| 67 |
|
|
@@ -376,7 +374,7 @@ def generate_dialogue_via_requests(
|
|
| 376 |
5. 目標是在結束前最後一次溫和地強調核心觀點
|
| 377 |
6. 最後可以適當地加入告別語,如「謝謝收聽」、「下次再見」等
|
| 378 |
7. 請確保在生成約{rounds_per_part}輪對話後才結束,不要過早結束
|
| 379 |
-
8. 不要重複開場白「歡迎
|
| 380 |
9. 忽略原始提示詞中關於開場白的指示,因為這不是對話的開始部分
|
| 381 |
"""
|
| 382 |
part_description = f"最後部分(結尾和總結,約{rounds_per_part}輪)"
|
|
@@ -646,8 +644,8 @@ with gr.Blocks(title="Script Generator", css="""
|
|
| 646 |
|
| 647 |
api_base = gr.Textbox(
|
| 648 |
label="API Base URL",
|
| 649 |
-
placeholder="https://
|
| 650 |
-
value="https://
|
| 651 |
)
|
| 652 |
|
| 653 |
api_key = gr.Textbox(
|
|
|
|
| 38 |
- speaker-1 (he introduces himself as David)
|
| 39 |
- speaker-2 (she introduces herself as Cordelia)
|
| 40 |
The conversation must **open** with speaker-1 saying:
|
| 41 |
+
「歡迎收聽 David888 Podcast,我是 David...」
|
| 42 |
After that, speaker-2 should introduce herself as Cordelia in her first speaking turn.
|
| 43 |
Please label each statement or line with speaker-1: or speaker-2: (all lower case, followed by a colon).
|
| 44 |
Do not use any other role or bracket placeholders like [Host] or [Guest].
|
|
|
|
| 53 |
Use a **two-speaker** conversational format with exactly:
|
| 54 |
- "speaker-1:" (David)
|
| 55 |
- "speaker-2:" (Cordelia)
|
| 56 |
+
- The first line must begin with speaker-1: 歡迎收聽 David888 Podcast,我是 David...
|
| 57 |
- When speaker-2 first speaks, she should introduce herself as Cordelia.
|
| 58 |
Alternate turns naturally to simulate an engaging back-and-forth conversation.
|
| 59 |
Do not include bracket placeholders like [Host] or [Guest]; only use speaker-1: or speaker-2: to start each line.
|
| 60 |
Design your output to be read aloud, as it will be directly converted into audio.
|
| 61 |
|
| 62 |
+
The dialogue must proceed for at least 67 rounds (one round is completed after speaker A finishes speaking and speaker B responds). In each round, at least one speaker must deliver detailed content (around 300-500 words), offering 2-3 subtopics for the other speaker to explore further.
|
|
|
|
|
|
|
| 63 |
Speakers can interrupt each other, insert personal experiences, or present challenges to simulate a genuine spontaneous discussion, maintaining a relaxed yet insightful atmosphere.
|
| 64 |
Design the dialogue for audio conversion (it will be directly read aloud), maintaining the humor, sharpness, and interactive feel typical of the All-In-Podcast .
|
| 65 |
|
|
|
|
| 374 |
5. 目標是在結束前最後一次溫和地強調核心觀點
|
| 375 |
6. 最後可以適當地加入告別語,如「謝謝收聽」、「下次再見」等
|
| 376 |
7. 請確保在生成約{rounds_per_part}輪對話後才結束,不要過早結束
|
| 377 |
+
8. 不要重複開場白「歡迎收聽 David888 Podcast,我是 David...」,直接繼續前面的對話
|
| 378 |
9. 忽略原始提示詞中關於開場白的指示,因為這不是對話的開始部分
|
| 379 |
"""
|
| 380 |
part_description = f"最後部分(結尾和總結,約{rounds_per_part}輪)"
|
|
|
|
| 644 |
|
| 645 |
api_base = gr.Textbox(
|
| 646 |
label="API Base URL",
|
| 647 |
+
placeholder="https://generativelanguage.googleapis.com/v1beta/openai",
|
| 648 |
+
value="https://generativelanguage.googleapis.com/v1beta/openai"
|
| 649 |
)
|
| 650 |
|
| 651 |
api_key = gr.Textbox(
|