Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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]:
|