Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -116,7 +116,7 @@ def trans_api(input, max_length=4096, top_p=0.8, temperature=0.2):
|
|
116 |
)
|
117 |
# logger.debug(f"{res=} \n{_=}")
|
118 |
except Exception as exc:
|
119 |
-
logger.error(exc)
|
120 |
res = str(exc)
|
121 |
|
122 |
return res
|
|
|
116 |
)
|
117 |
# logger.debug(f"{res=} \n{_=}")
|
118 |
except Exception as exc:
|
119 |
+
logger.error(f"{exc=}")
|
120 |
res = str(exc)
|
121 |
|
122 |
return res
|