eternalBlissard commited on
Commit
6d2ed22
·
verified ·
1 Parent(s): fd57e3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -20,7 +20,7 @@ client = OpenAI(
20
  api_key=ACCESS_TOKEN,
21
  )
22
 
23
-
24
  def random_name_generator():
25
  length = random.randint(10, 15) # Random length between 10 and 15
26
  characters = string.ascii_letters + string.digits # All alphanumeric characters
@@ -82,7 +82,10 @@ def respond(
82
  temperature,
83
  top_p,
84
  ):
85
- messages = [{"role": "system", "content": system_message}]
 
 
 
86
 
87
  for val in history:
88
  if val[0]:
 
20
  api_key=ACCESS_TOKEN,
21
  )
22
 
23
+ val = None
24
  def random_name_generator():
25
  length = random.randint(10, 15) # Random length between 10 and 15
26
  characters = string.ascii_letters + string.digits # All alphanumeric characters
 
82
  temperature,
83
  top_p,
84
  ):
85
+ if(val==None):
86
+ subtitles = outputProducer(system_message)
87
+ val = subtitle_it(subtitle_it)
88
+ messages = [{"role": "system", "content": "Answer by using the transcript"}]
89
 
90
  for val in history:
91
  if val[0]: