Spaces:
Runtime error
Runtime error
peter szemraj
commited on
Commit
·
b97cc67
1
Parent(s):
c96b784
move logging to verbose-only
Browse files
utils.py
CHANGED
|
@@ -35,7 +35,8 @@ def postprocess(text: str):
|
|
| 35 |
return text
|
| 36 |
|
| 37 |
|
| 38 |
-
def clear(text, **kwargs):
|
| 39 |
"""for use with buttons"""
|
| 40 |
-
|
|
|
|
| 41 |
return ""
|
|
|
|
| 35 |
return text
|
| 36 |
|
| 37 |
|
| 38 |
+
def clear(text, verbose=False, **kwargs):
|
| 39 |
"""for use with buttons"""
|
| 40 |
+
if verbose:
|
| 41 |
+
logging.info(f"Clearing text: {text}")
|
| 42 |
return ""
|