chansung commited on
Commit
62d6792
1 Parent(s): 89fdef5

Update vid2persona/pipeline/llm.py

Browse files
Files changed (1) hide show
  1. vid2persona/pipeline/llm.py +1 -1
vid2persona/pipeline/llm.py CHANGED
@@ -71,7 +71,7 @@ async def chat(
71
  try:
72
  for response in local_openllm.send_message(messages, model_id, max_input_token_length, parameters):
73
  yield response
74
- except ThreadPoolBuildError as e:
75
  gr.Warning(f"{e} ➡️ Switching to TGI remotely hosted model")
76
  finally:
77
  async for response in tgi_openllm.send_messages(messages, model_id, hf_token, parameters):
 
71
  try:
72
  for response in local_openllm.send_message(messages, model_id, max_input_token_length, parameters):
73
  yield response
74
+ except Exception as e:
75
  gr.Warning(f"{e} ➡️ Switching to TGI remotely hosted model")
76
  finally:
77
  async for response in tgi_openllm.send_messages(messages, model_id, hf_token, parameters):