Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def respond(
|
|
57 |
response += token
|
58 |
yield response
|
59 |
|
60 |
-
except
|
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)}")
|