eternalBlissard commited on
Commit
cd7b2f9
·
verified ·
1 Parent(s): e9b6ee1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -20,7 +20,7 @@ client = OpenAI(
20
  api_key=ACCESS_TOKEN,
21
  )
22
 
23
- val = None
24
  @spaces.GPU(duration=1)
25
  def random_name_generator():
26
  length = random.randint(10, 15) # Random length between 10 and 15
@@ -84,11 +84,10 @@ def respond(
84
  temperature,
85
  top_p,
86
  ):
87
- global val
88
- if ((val is None) or reprocess):
89
- subtitles = outputProducer(system_message)
90
- val = subtitle_it(subtitles)
91
- print(val)
92
  # reprocess-=1
93
  messages = [{"role": "system", "content": "Answer by using the transcript"+val}]
94
 
 
20
  api_key=ACCESS_TOKEN,
21
  )
22
 
23
+ # val = None
24
  @spaces.GPU(duration=1)
25
  def random_name_generator():
26
  length = random.randint(10, 15) # Random length between 10 and 15
 
84
  temperature,
85
  top_p,
86
  ):
87
+ # global val
88
+ # if ((val is None) or reprocess):
89
+ subtitles = outputProducer(system_message)
90
+ val = subtitle_it(subtitles)
 
91
  # reprocess-=1
92
  messages = [{"role": "system", "content": "Answer by using the transcript"+val}]
93