Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -95,8 +95,8 @@ class Reviewer:
|
|
95 |
usage = response.usage.total_tokens
|
96 |
except Exception as e:
|
97 |
# 处理其他的异常
|
98 |
-
result = str(e)
|
99 |
-
usage =
|
100 |
print("********"*10)
|
101 |
print(result)
|
102 |
print("********"*10)
|
|
|
95 |
usage = response.usage.total_tokens
|
96 |
except Exception as e:
|
97 |
# 处理其他的异常
|
98 |
+
result = "非常抱歉>_<,生了一个错误:"+ str(e)
|
99 |
+
usage = 'xxxxx'
|
100 |
print("********"*10)
|
101 |
print(result)
|
102 |
print("********"*10)
|