eternalBlissard commited on
Commit
34593de
·
verified ·
1 Parent(s): e2c2e67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -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,11 @@ 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
+ # print(val)
92
  # reprocess-=1
93
  messages = [{"role": "system", "content": "Answer by using the transcript"+val}]
94