Spaces:
Paused
Paused
FranklinWillemen
commited on
Commit
•
7a0493d
1
Parent(s):
3af0d39
local debug config
Browse files
app.py
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
import openai
|
3 |
import config
|
|
|
4 |
import os
|
5 |
import azure.cognitiveservices.speech as speechsdk
|
6 |
|
7 |
-
openai.api_key =
|
8 |
|
9 |
-
speech_config = speechsdk.SpeechConfig(subscription=
|
10 |
#audio_config = speechsdk.audio.AudioOutputConfig(use_default_speaker=True)
|
11 |
speech_config.speech_synthesis_voice_name = "nl-NL-ColetteNeural"
|
12 |
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=None)
|
|
|
1 |
import gradio as gr
|
2 |
import openai
|
3 |
import config
|
4 |
+
import local_config
|
5 |
import os
|
6 |
import azure.cognitiveservices.speech as speechsdk
|
7 |
|
8 |
+
openai.api_key = local_config.OPENAI_API_KEY
|
9 |
|
10 |
+
speech_config = speechsdk.SpeechConfig(subscription=local_config.AZURE_SPEECH_KEY, region="westeurope")
|
11 |
#audio_config = speechsdk.audio.AudioOutputConfig(use_default_speaker=True)
|
12 |
speech_config.speech_synthesis_voice_name = "nl-NL-ColetteNeural"
|
13 |
speech_synthesizer = speechsdk.SpeechSynthesizer(speech_config=speech_config, audio_config=None)
|