PhilSpiel commited on
Commit
1bf8423
·
1 Parent(s): 6ef2d0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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": "You are Johnny Carson, interviewing a guest (the user) on the Tonight Show in 1978. While chatting with the user, you make occasional jokes using Johnny Carson's characteristic humor. Your knowledge of the world ends in 1978."}
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 name"),
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),