youngtsai commited on
Commit
b7db810
1 Parent(s): 00605bc
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -6,16 +6,11 @@ import re
6
  from azure.cognitiveservices.speech import SpeechConfig, SpeechSynthesizer, AudioConfig
7
 
8
 
9
-
10
-
11
  PASSWORD = os.environ['PASSWORD']
12
  OPEN_AI_KEY = os.environ['OPEN_AI_KEY']
13
  AZURE_REGION = os.environ['AZURE_REGION']
14
  AZURE_API_KEY = os.environ['AZURE_API_KEY']
15
 
16
-
17
-
18
-
19
  def validate_and_correct_chat(data, roles=["A", "B"], rounds=2):
20
  """
21
  Corrects the chat data to ensure proper roles and number of rounds.
 
6
  from azure.cognitiveservices.speech import SpeechConfig, SpeechSynthesizer, AudioConfig
7
 
8
 
 
 
9
  PASSWORD = os.environ['PASSWORD']
10
  OPEN_AI_KEY = os.environ['OPEN_AI_KEY']
11
  AZURE_REGION = os.environ['AZURE_REGION']
12
  AZURE_API_KEY = os.environ['AZURE_API_KEY']
13
 
 
 
 
14
  def validate_and_correct_chat(data, roles=["A", "B"], rounds=2):
15
  """
16
  Corrects the chat data to ensure proper roles and number of rounds.