hunyuan-t commited on
Commit
5c05d36
1 Parent(s): 8fe1510

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -57,7 +57,7 @@ def respond(
57
  response += token
58
  yield response
59
 
60
- except TencentCloudSDKExceptionas err:
61
  raise gr.Error(f"腾讯云SDK异常: {err}")
62
  except Exception as e:
63
  raise gr.Error(f"发生错误: {str(e)}")
 
57
  response += token
58
  yield response
59
 
60
+ except TencentCloudSDKException as err:
61
  raise gr.Error(f"腾讯云SDK异常: {err}")
62
  except Exception as e:
63
  raise gr.Error(f"发生错误: {str(e)}")