Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ elevenlabs_api_key = os.getenv("ELEVENLABS_API_KEY")
|
|
| 13 |
# Initialize empty history list to maintain the conversation context
|
| 14 |
history_openai_format = [
|
| 15 |
{"role": "system",
|
| 16 |
-
"content": "
|
| 17 |
]
|
| 18 |
|
| 19 |
# Define the function that takes a name and text input to generate the speech
|
|
@@ -72,7 +72,7 @@ def generate_speech(name, input_text):
|
|
| 72 |
iface = gr.Interface(
|
| 73 |
fn=generate_speech,
|
| 74 |
inputs=[
|
| 75 |
-
gr.Textbox(label="Your Name (optional):", placeholder="Enter your
|
| 76 |
gr.Textbox(label="Your question or comment:")
|
| 77 |
],
|
| 78 |
outputs=gr.Audio(autoplay=True),
|
|
|
|
| 13 |
# Initialize empty history list to maintain the conversation context
|
| 14 |
history_openai_format = [
|
| 15 |
{"role": "system",
|
| 16 |
+
"content": os.getenv("PROMPT")}
|
| 17 |
]
|
| 18 |
|
| 19 |
# Define the function that takes a name and text input to generate the speech
|
|
|
|
| 72 |
iface = gr.Interface(
|
| 73 |
fn=generate_speech,
|
| 74 |
inputs=[
|
| 75 |
+
gr.Textbox(label="Your Name (optional):", placeholder="Enter your FIRST NAME"),
|
| 76 |
gr.Textbox(label="Your question or comment:")
|
| 77 |
],
|
| 78 |
outputs=gr.Audio(autoplay=True),
|