Spanicin commited on
Commit
2aea41f
1 Parent(s): c882c0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -205,8 +205,7 @@ def save_uploaded_file(file, filename,TEMP_DIR):
205
  file.save(file_path)
206
  return file_path
207
 
208
- client = OpenAI(api_key="sk-proj-kCWZ14uWu75TGbUpnPN0T3BlbkFJBzaEBtjofIgisYc6Ohr6")
209
- client1 = OpenAI(api_key="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")
210
 
211
  def translate_text(text_prompt, target_language):
212
  response = client.chat.completions.create(
@@ -277,7 +276,7 @@ def generate_video():
277
  voice = 'nova'
278
 
279
  print('Entering Audio creation using whisper')
280
- response = client1.audio.speech.create(model="tts-1-hd",
281
  voice=voice,
282
  input = text_prompt)
283
 
 
205
  file.save(file_path)
206
  return file_path
207
 
208
+ client = OpenAI(api_key="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")
 
209
 
210
  def translate_text(text_prompt, target_language):
211
  response = client.chat.completions.create(
 
276
  voice = 'nova'
277
 
278
  print('Entering Audio creation using whisper')
279
+ response = client.audio.speech.create(model="tts-1-hd",
280
  voice=voice,
281
  input = text_prompt)
282