Spaces:
Running
Running
missing parenthesis
Browse files
app.py
CHANGED
@@ -455,7 +455,7 @@ def main():
|
|
455 |
new_query = reworded_query['rewritten_question']
|
456 |
if guest.split(' ')[1] not in new_query and guest.split(' ')[0] not in new_query:
|
457 |
# if the guest name is not in the rewritten question, we add it
|
458 |
-
new_query = f"About {guest}, " + new_query
|
459 |
query = new_query
|
460 |
|
461 |
# we can arrive here only if a guest was selected
|
@@ -512,7 +512,7 @@ def main():
|
|
512 |
|
513 |
|
514 |
GPTllm = GPT_Turbo(model=model_nameGPT,
|
515 |
-
api_key=openai_api_key
|
516 |
try:
|
517 |
# inserts chat stream from LLM
|
518 |
for resp in GPTllm.get_chat_completion(prompt=prompt,
|
|
|
455 |
new_query = reworded_query['rewritten_question']
|
456 |
if guest.split(' ')[1] not in new_query and guest.split(' ')[0] not in new_query:
|
457 |
# if the guest name is not in the rewritten question, we add it
|
458 |
+
new_query = f"About {guest}, " + new_query()
|
459 |
query = new_query
|
460 |
|
461 |
# we can arrive here only if a guest was selected
|
|
|
512 |
|
513 |
|
514 |
GPTllm = GPT_Turbo(model=model_nameGPT,
|
515 |
+
api_key=openai_api_key)
|
516 |
try:
|
517 |
# inserts chat stream from LLM
|
518 |
for resp in GPTllm.get_chat_completion(prompt=prompt,
|